Class Chart3DDefaultFont
Gets or sets the font style customization for the respective SfChart3D element.
Inheritance
Inherited Members
Namespace: Syncfusion.Blazor.Chart3D
Assembly: Syncfusion.Blazor.dll
Syntax
public class Chart3DDefaultFont : Chart3DSubComponent, IChart3DSubcomponentTracker, IChart3DDefaultFont
Remarks
This is base class for all the font style customization classes in the SfChart3D. Using this class, we can customize the font size, family, style, weight, color, and opacity of the text in the SfChart3D.
Constructors
Chart3DDefaultFont()
Declaration
public Chart3DDefaultFont()
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 "Helvetica". |
Remarks
If no font family is specified, based on the SfChart3D theme the font family will be applied to the text.
FontSize
Gets or sets the font size for the text.
Declaration
public virtual string FontSize { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string representing the font size for the text. The default value is "16px". |
Remarks
If no font size is specified, based on the SfChart3D 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 "Normal". |
Remarks
If no font style is specified, based on the SfChart3D theme the font style will be applied to the text.
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
If no font weight is specified, based on the SfChart3D theme the font weight will be applied to the text.
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. It ranges from 0 to 1. The default value is 1. |
Remarks
Set this property to customize the opacity of the text in the SfChart3D. It accepts values from 0 to 1.
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. Options include: |
Remarks
Set this property to customize the alignment of the text in the SfChart3D.
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 enumerations that specifies the text overflow options. Options include: |
Remarks
Set this property to customize the text overflow behavior in the SfChart3D.