Class ChartDefaultFont
Sets and gets the options for customizing the text style of the chart component.
Inheritance
Inherited Members
Namespace: Syncfusion.Blazor.Charts
Assembly: Syncfusion.Blazor.dll
Syntax
public class ChartDefaultFont : ChartSubComponent, ISubcomponentTracker, IChartDefaultFont
Constructors
ChartDefaultFont()
Declaration
public ChartDefaultFont()
Properties
Color
Gets or sets the color for the text.
Declaration
public virtual string Color { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string representing the color for the text. The default value is null. |
Remarks
Accepts values in hex and rgba as a valid CSS color string.
FontFamily
Gets or sets the font family for the text.
Declaration
public virtual string FontFamily { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string representing the font family for the text. The default value is "Segoe UI". |
FontStyle
Gets or sets the font style for the text.
Declaration
public string FontStyle { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string representing the font style for the text. The default value is "Normal". |
FontWeight
Gets or sets the font weight for the text.
Declaration
public virtual string FontWeight { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string representing the font weight for the text. The default value is "Normal". |
Opacity
Gets or sets the opacity for the text.
Declaration
public double Opacity { get; set; }
Property Value
Type | Description |
---|---|
System.Double | A double value representing the opacity for the text. The default value is 1. |
Size
Gets or sets the font size for the text.
Declaration
public virtual string Size { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string representing the font size for the text. The default value is "16px". |
TextAlignment
Gets or sets the text alignment.
Declaration
public Alignment TextAlignment { get; set; }
Property Value
Type | Description |
---|---|
Alignment | One of the Alignment enumerations that specifies the alignment of the text. The options include:
|
TextOverflow
Gets or sets the text overflow behavior to employ when the text exceeds the defined margins.
Declaration
public TextOverflow TextOverflow { get; set; }
Property Value
Type | Description |
---|---|
TextOverflow | One of the TextOverflow enumeration that specifies the text overflow options. The options include:
|