Class SankeyBaseTextStyle
Serves as the base component for managing text styles in a Sankey.
Inheritance
Namespace: Syncfusion.Blazor.Sankey
Assembly: Syncfusion.Blazor.dll
Syntax
public class SankeyBaseTextStyle : SankeyComponentBase, ISankeyFontStyle
Remarks
This class provides properties for customizing text appearance, such as color, font family, font style, font weight, and font size. These properties allow fine-grained control over text styling, and default values align with the Theme if unspecified.
Constructors
SankeyBaseTextStyle()
Declaration
public SankeyBaseTextStyle()
Properties
Color
Gets or sets the color for the text.
Declaration
public 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 string FontFamily { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string representing the font family for the text. The default value is null. |
Remarks
If no font family is specified, based on the SfSankey theme the font family will be applied to the text.
FontSize
Gets or sets the font size for the text.
Declaration
public string FontSize { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string representing the font size for the text. The default value is null. |
Remarks
If no font size is specified, based on the SfSankey theme the font size will be applied to the text.
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 null. |
Remarks
If no font style is specified, based on the SfSankey theme the font style will be applied to the text.
FontWeight
Gets or sets the font weight for the text.
Declaration
public string FontWeight { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string representing the font weight for the text. The default value is null. |
Remarks
If no font weight is specified, based on the SfSankey theme the font weight will be applied to the text.