alexa
menu

Blazor

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

    Show / Hide Table of Contents

    Class CircularGaugeAxisLabelStyle

    Defines the options to configure the style of the axis labels in the circular gauge component.

    Inheritance
    object
    ComponentBase
    OwningComponentBase
    SfOwningComponentBase
    CircularGaugeAxisLabelStyle
    Implements
    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    Inherited Members
    ComponentBase.Assets
    ComponentBase.AssignedRenderMode
    ComponentBase.DispatchExceptionAsync(Exception)
    ComponentBase.InvokeAsync(Action)
    ComponentBase.InvokeAsync(Func<Task>)
    ComponentBase.OnAfterRender(bool)
    ComponentBase.OnAfterRenderAsync(bool)
    ComponentBase.OnInitialized()
    ComponentBase.OnParametersSet()
    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.IsDisposed
    OwningComponentBase.ScopedServices
    Namespace: Syncfusion.Blazor.CircularGauge
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class CircularGaugeAxisLabelStyle : SfOwningComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

    Constructors

    CircularGaugeAxisLabelStyle()

    Declaration
    public CircularGaugeAxisLabelStyle()

    Properties

    AutoAngle

    Gets or sets a value indicating whether the labels are rotated along the axis in the circular gauge component.

    Declaration
    [Parameter]
    public bool AutoAngle { get; set; }
    Property Value
    Type Description
    bool

    A bool indicating rotation state. Default is false.

    Remarks

    Enabling this option allows labels to be positioned at an angle consistent with the axis.

    ChildContent

    Gets or sets the content of the UI element.

    Declaration
    [Parameter]
    public RenderFragment ChildContent { get; set; }
    Property Value
    Type Description
    RenderFragment

    A RenderFragment representing the child content of the UI element.

    Remarks

    This property allows specifying custom content inside the UI element.

    Format

    Gets or sets the format for the axis label.

    Declaration
    [Parameter]
    public string Format { get; set; }
    Property Value
    Type Description
    string

    A string representing the format for the axis label. Default is String.Empty.

    Remarks

    Supports global string formats such as 'C', 'n1', 'P', and custom formats like '{value}°C'.

    HiddenLabel

    Gets or sets the label option that determines when a label is hidden if an axis completes a circle.

    Declaration
    [Parameter]
    public HiddenLabel HiddenLabel { get; set; }
    Property Value
    Type Description
    HiddenLabel

    A HiddenLabel enumeration value specifying label visibility. Default is None.

    Remarks

    Useful for managing label overlap in circular axes.

    Offset

    Gets or sets the offset distance for the labels from the axis in the circular gauge.

    Declaration
    [Parameter]
    public double Offset { get; set; }
    Property Value
    Type Description
    double

    A double representing the offset. Default is 0.

    Remarks

    Use this property to adjust the distance of labels from the axis.

    Position

    Gets or sets the position type to arrange labels along the axis.

    Declaration
    [Parameter]
    public Position Position { get; set; }
    Property Value
    Type Description
    Position

    A Position value indicating the label position. Default is Inside.

    Remarks

    Determines whether labels are positioned inside or outside the axis.

    ShouldMaintainPadding

    Gets or sets a value indicating whether to maintain default padding for axis labels.

    Declaration
    [Parameter]
    public bool ShouldMaintainPadding { get; set; }
    Property Value
    Type Description
    bool

    A bool value indicating if default padding is maintained. Default is true.

    Remarks

    When true, default padding is maintained between axis labels and their environment.

    UseRangeColor

    Gets or sets a value indicating whether to use range colors for axis labels.

    Declaration
    [Parameter]
    public bool UseRangeColor { get; set; }
    Property Value
    Type Description
    bool

    A bool that indicates if range colors are used. Default is false.

    Remarks

    Range-based coloring can be used to reflect value ranges via label coloring.

    Methods

    BuildRenderTree(RenderTreeBuilder)

    Declaration
    protected override void BuildRenderTree(RenderTreeBuilder __builder)
    Parameters
    Type Name Description
    RenderTreeBuilder __builder
    Overrides
    ComponentBase.BuildRenderTree(RenderTreeBuilder)

    Dispose(bool)

    Disposes the property values during the destroy of the component that is hold up for the execution of the component.

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    bool disposing
    Overrides
    OwningComponentBase.Dispose(bool)

    OnInitializedAsync()

    OnInitializedAsync method is called when the component has received its initial parameters.

    Declaration
    protected override Task OnInitializedAsync()
    Returns
    Type Description
    Task

    Task representing the asynchronous operation.

    Overrides
    ComponentBase.OnInitializedAsync()

    OnParametersSetAsync()

    OnParametersSetAsync is a lifecycle method that is invoked when the component has received parameters, and the incoming values have been assigned to the properties.

    Declaration
    protected override Task OnParametersSetAsync()
    Returns
    Type Description
    Task

    Task representing the asynchronous operation.

    Overrides
    ComponentBase.OnParametersSetAsync()

    Implements

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