Class LinearGaugeFontSettings
Defines the options for customizing the fonts used in the linear gauge component. Provides properties to control text appearance including color, font family, style, weight, opacity, and size.
Inheritance
Namespace: Syncfusion.Blazor.LinearGauge
Assembly: Syncfusion.Blazor.dll
Syntax
public class LinearGaugeFontSettings : OwningComponentBase
Constructors
LinearGaugeFontSettings()
Declaration
public LinearGaugeFontSettings()
Properties
Color
Gets or sets the font color for the text.
Declaration
public string Color { get; set; }
Property Value
Type | Description |
---|---|
System.String | A System.String representing the text color, specified in hex, rgba, or any valid CSS color format. |
Remarks
This property allows customization of text color to ensure it fits the visual design of the gauge.
FontFamily
Gets or sets the font family for the text.
Declaration
public string FontFamily { get; set; }
Property Value
Type | Description |
---|---|
System.String | A System.String that specifies the name of the font family for rendering text. |
Remarks
The font family influences the typography style of the text elements within the gauge.
FontStyle
Gets or sets the style of the text.
Declaration
public string FontStyle { get; set; }
Property Value
Type | Description |
---|---|
System.String | A System.String indicating the style of the text, such as normal, italic, or oblique. |
Remarks
Text styling is key for distinguishing emphasis and simulating handwriting in the display area.
FontWeight
Gets or sets the font weight of the text.
Declaration
public string FontWeight { get; set; }
Property Value
Type | Description |
---|---|
System.String | A System.String specifying the weight of the font, ranging from light to bold. |
Remarks
This property adjusts text boldness, affecting readability and emphasis within the display.
Opacity
Gets or sets the opacity of the text, with 0 being fully transparent and 1 being fully opaque.
Declaration
public double Opacity { get; set; }
Property Value
Type | Description |
---|---|
System.Double | A System.Double representing the opacity level, defaulting to 1. |
Remarks
Text opacity allows for overlay effects and easier integration with background elements.
Size
Gets or sets the size of the font in text.
Declaration
public string Size { get; set; }
Property Value
Type | Description |
---|---|
System.String | A System.String defining the size of the font, such as "12px", "larger", etc. |
Remarks
The font size is crucial in ensuring clear text readability and aesthetic balance in the gauge display.
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 |
OnParametersSetAsync()
OnInitializedAsync method is called when the component has received its initial parameters.
Declaration
protected override Task OnParametersSetAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | System.Threading.Tasks.Task representing the asynchronous operation. |