Class LinearGaugeMarkerTextStyle
Sets and gets the style of text in pointer of an axis.
Inheritance
Namespace: Syncfusion.Blazor.LinearGauge
Assembly: Syncfusion.Blazor.dll
Syntax
public class LinearGaugeMarkerTextStyle : OwningComponentBase
Constructors
LinearGaugeMarkerTextStyle()
Declaration
public LinearGaugeMarkerTextStyle()
Properties
FontFamily
Defines the font-family of the text pointer. The default value of this property varies based on the Theme property value set in the Linear Gauge.
Declaration
public string FontFamily { get; set; }
Property Value
Type | Description |
---|---|
System.String | A System.String representing the font-family as used in CSS for HTML elements. |
Remarks
Use this property to specify the font-family for the text in the pointer. It mirrors the font-family
styling of HTML/CSS.
FontStyle
Gets or sets the font-style of the text pointer.
Declaration
public string FontStyle { get; set; }
Property Value
Type | Description |
---|---|
System.String | A System.String representing the font-style as used in CSS for HTML elements. |
Remarks
This property determines the font-style (e.g., normal, italic, oblique) of the text in the pointer, following the CSS font-style convention.
FontWeight
Gets or sets the font-weight of the text pointer.
Declaration
public string FontWeight { get; set; }
Property Value
Type | Description |
---|---|
System.String | A System.String representing the font-weight, as used in CSS for HTML elements. |
Remarks
This property sets the thickness (weight) of the text in the pointer, following the CSS font-weight convention (e.g., normal, bold).
Size
Gets or sets the font-size of the text pointer.
Declaration
public string Size { get; set; }
Property Value
Type | Description |
---|---|
System.String | A System.String representing the font-size, as used in CSS for HTML elements. |
Remarks
Use this property to set the size of the text in the pointer, adhering to CSS font-size standards (e.g., pixels, em).
Methods
Dispose(Boolean)
Disposes the property values during the destroy of the component that is hold up for the execution of the component.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
OnInitializedAsync()
OnInitializedAsync method is called when the component has received its initial parameters.
Declaration
protected override Task OnInitializedAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | System.Threading.Tasks.Task representing the asynchronous operation. |
OnParametersSetAsync()
OnParametersSetAsync is a lifecycle method that is invoked when the component has received parameters, and the incoming values have been assigned to the properties.
Declaration
protected override Task OnParametersSetAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | System.Threading.Tasks.Task representing the asynchronous operation. |