alexa
menu

Blazor

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

    Show / Hide Table of Contents

    Class LinearGaugeAxis

    Defines the annotation element for an axis in linear gauge component.

    Inheritance
    object
    ComponentBase
    OwningComponentBase
    SfOwningComponentBase
    LinearGaugeAxis
    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.LinearGauge
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class LinearGaugeAxis : SfOwningComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
    Remarks

    The LinearGaugeAxis class defines properties and methods for configuring an axis in a linear gauge, including its scale, orientation, tick marks, and labels. It serves as a fundamental component for presenting numerical data in linear form within the gauge.

    Constructors

    LinearGaugeAxis()

    Declaration
    public LinearGaugeAxis()

    Properties

    ChildContent

    Gets or sets the content of the UI element.

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

    A RenderFragment encapsulating the child content for customizing the axis.

    Remarks

    This property allows embedding elements or components to further customize the appearance of the axis.

    IsInversed

    Gets or sets a value indicating whether or not to inverse the axis.

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

    A boolean value specifying whether the axis direction is reversed. Default is false.

    Remarks

    Inversing the axis can be useful for changing the orientation of scale representation in the gauge.

    Maximum

    Gets or sets the maximum value for the axis.

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

    A double specifying the upper bound of the axis range. Default is 100.

    Remarks

    This property defines the maximum limit of values displayed on the axis.

    Minimum

    Gets or sets the minimum value for the axis.

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

    A double specifying the lower bound of the axis range.

    Remarks

    This property defines the minimum limit of values displayed on the axis.

    OpposedPosition

    Gets or sets a value indicating whether or not to enable the opposed position of the axis in the linear gauge..

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

    A boolean value specifying whether the axis should be displayed on the opposite side. Default is false.

    Remarks

    Opposed position can be used to align the axis on the opposite side of the default configuration.

    ShowLastLabel

    Gets or sets a value indicating whether or not to show the last label in the linear gauge axis.

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

    A boolean value that specifies whether the last label should be shown. Default is false.

    Remarks

    Showing the last label is helpful when you want to provide clear indicators for endpoints of the scale.

    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