alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Class Chart3DDefaultFont

    Gets or sets the font style customization for the respective 3D Chart element.

    Inheritance
    object
    ComponentBase
    OwningComponentBase
    SfOwningComponentBase
    Chart3DSubComponent
    Chart3DDefaultFont
    Chart3DAxisLabelStyle
    Chart3DAxisTitleStyle
    Chart3DDataLabelFont
    Chart3DLegendTextStyle
    Chart3DLegendTitleStyle
    Chart3DSubTitleStyle
    Chart3DTitleStyle
    Chart3DTooltipTextStyle
    Implements
    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    Inherited Members
    ComponentBase.Assets
    ComponentBase.AssignedRenderMode
    ComponentBase.BuildRenderTree(RenderTreeBuilder)
    ComponentBase.DispatchExceptionAsync(Exception)
    ComponentBase.InvokeAsync(Action)
    ComponentBase.InvokeAsync(Func<Task>)
    ComponentBase.OnAfterRender(bool)
    ComponentBase.OnAfterRenderAsync(bool)
    ComponentBase.OnInitialized()
    ComponentBase.OnInitializedAsync()
    ComponentBase.OnParametersSet()
    ComponentBase.OnParametersSetAsync()
    ComponentBase.RendererInfo
    ComponentBase.SetParametersAsync(ParameterView)
    ComponentBase.ShouldRender()
    ComponentBase.StateHasChanged()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    OwningComponentBase.Dispose(bool)
    OwningComponentBase.IsDisposed
    OwningComponentBase.ScopedServices
    Namespace: Syncfusion.Blazor.Chart3D
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class Chart3DDefaultFont : Chart3DSubComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
    Remarks

    This is base class for all the font style customization classes in the 3D Chart. Using this class, we can customize the font size, family, style, weight, color, and opacity of the text in the 3D Chart.

    Constructors

    Chart3DDefaultFont()

    Declaration
    public Chart3DDefaultFont()

    Properties

    Color

    Gets or sets the color for the text.

    Declaration
    [Parameter]
    public virtual 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
    public virtual string FontFamily { get; set; }
    Property Value
    Type Description
    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 3D Chart theme the font family will be applied to the text.

    FontSize

    Gets or sets the font size for the text.

    Declaration
    [Parameter]
    public virtual string FontSize { get; set; }
    Property Value
    Type Description
    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 3D Chart 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 "Normal".

    Remarks

    If no font style is specified, based on the 3D Chart theme the font style will be applied to the text.

    FontWeight

    Gets or sets the font weight for the text.

    Declaration
    [Parameter]
    public virtual string FontWeight { get; set; }
    Property Value
    Type Description
    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 3D Chart theme the font weight will be applied to the text.

    Opacity

    Gets or sets the opacity for the text.

    Declaration
    [Parameter]
    public double Opacity { get; set; }
    Property Value
    Type Description
    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 3D Chart. It accepts values from 0 to 1.

    TextAlignment

    Gets or sets the text alignment.

    Declaration
    [Parameter]
    [JsonConverter(typeof(JsonStringEnumConverter))]
    public Alignment TextAlignment { get; set; }
    Property Value
    Type Description
    Alignment

    One of the Alignment enumerations that specifies the alignment of the text. Options include:

    • Near: Aligns the text near.
    • Center: Centers the text.
    • Far: Aligns the text far.
    The default value is Center.
    Remarks

    Set this property to customize the alignment of the text in the 3D Chart.

    TextOverflow

    Gets or sets the text overflow behavior to employ when the text exceeds the defined margins.

    Declaration
    [Parameter]
    [JsonConverter(typeof(JsonStringEnumConverter))]
    public TextOverflow TextOverflow { get; set; }
    Property Value
    Type Description
    TextOverflow

    One of the TextOverflow enumerations that specifies the text overflow options. Options include:

    • Trim: Trims the text if it exceeds the defined margins.
    • Wrap: Wraps the text if it exceeds the defined margins.
    • None: Shows the text as it is.
    The default value is Wrap.
    Remarks

    Set this property to customize the text overflow behavior in the 3D Chart.

    Implements

    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved