Class ChartDefaultFont
Provides 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". |
Remarks
This property specifies the font face used in rendering the text, offering a wide variety of standard and custom fonts.
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". |
Remarks
The font style can be used to apply settings like Italic or Oblique to the text, affecting its emphasis and legibility.
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". |
Remarks
Use this property to define the thickness of the text characters, providing levels of boldness.
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. |
Remarks
The opacity determines the transparency level of the text, where 1 is completely opaque, and 0 is fully transparent.
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". |
Remarks
This property determines the size of the text, impacting its readability within the chart component context.
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:
|
Remarks
Text alignment adjusts the horizontal placement of text within its container, affecting its position relative to other content.
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:
|
Remarks
This property manages how text should behave when it's too long for its allocated space, either by trimming, wrapping, or displaying fully.