Class SankeyBaseTextStyle
Serves as the base component for managing text styles in a Sankey.
Inheritance
Inherited Members
Namespace: Syncfusion.Blazor.Sankey
Assembly: Syncfusion.Blazor.dll
Syntax
public class SankeyBaseTextStyle : SankeyComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
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 Sankey theme if unspecified.
Constructors
SankeyBaseTextStyle()
Declaration
public SankeyBaseTextStyle()
Properties
Color
Gets or sets the color for the text.
Declaration
[Parameter]
public string Color { get; set; }
Property Value
| Type | Description |
|---|---|
| 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
[Parameter]
public string FontFamily { get; set; }
Property Value
| Type | Description |
|---|---|
| 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 Sankey theme the font family will be applied to the text.
FontSize
Gets or sets the font size for the text.
Declaration
[Parameter]
public string FontSize { get; set; }
Property Value
| Type | Description |
|---|---|
| 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 Sankey theme the font size will be applied to the text.
FontStyle
Gets or sets the font style for the text.
Declaration
[Parameter]
public string FontStyle { get; set; }
Property Value
| Type | Description |
|---|---|
| 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 Sankey theme the font style will be applied to the text.
FontWeight
Gets or sets the font weight for the text.
Declaration
[Parameter]
public string FontWeight { get; set; }
Property Value
| Type | Description |
|---|---|
| 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 Sankey theme the font weight will be applied to the text.