Class FontOptions
Defines the font styling options used for SVG text elements in chart components.
Inherited Members
Namespace: Syncfusion.Blazor.DataVizCommon
Assembly: Syncfusion.Blazor.dll
Syntax
public class FontOptions
Constructors
FontOptions()
Declaration
public FontOptions()
Properties
Color
Gets or sets the color of the font. Accepts a valid CSS color string (hex or rgba).
Declaration
public string Color { get; set; }
Property Value
| Type |
|---|
| string |
FontFamily
Gets or sets the font family for the text element.
Declaration
public string FontFamily { get; set; }
Property Value
| Type |
|---|
| string |
FontStyle
Gets or sets the font style (e.g., "normal", "italic", "oblique").
Declaration
public string FontStyle { get; set; }
Property Value
| Type |
|---|
| string |
FontWeight
Gets or sets the font weight (e.g., "normal", "bold", "600").
Declaration
public string FontWeight { get; set; }
Property Value
| Type |
|---|
| string |
Size
Gets or sets the size of the font (e.g., "12px", "1rem").
Declaration
public string Size { get; set; }
Property Value
| Type |
|---|
| string |