alexa
menu

Blazor

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

    Show / Hide Table of Contents

    Class LinearGaugeContainer

    Defines the container axis for an axis in linear gauge component.

    Inheritance
    object
    ComponentBase
    OwningComponentBase
    SfOwningComponentBase
    LinearGaugeContainer
    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 LinearGaugeContainer : SfOwningComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

    Constructors

    LinearGaugeContainer()

    Declaration
    public LinearGaugeContainer()

    Properties

    BackgroundColor

    Gets or sets the background color of the container in linear gauge.

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

    A string representing the background color of the container. The default value is "transparent".

    Remarks

    Supports various CSS color formats such as hex, rgba, or named colors for rich customization.

    ChildContent

    Gets or sets the content of the UI element.

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

    A RenderFragment containing the content displayed inside the container.

    Remarks

    Use this property to inject child content within the linear gauge container.

    Height

    Gets or sets the height of the container in linear gauge.

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

    A double indicating the height of the container.

    Remarks

    Specifying the height allows control over the container's size within the gauge component.

    Offset

    Gets or sets the value to place the container in the linear gauge component.

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

    A double representing the offset position of the container.

    Remarks

    Adjusting the offset can help position the container precisely within the overall layout.

    RoundedCornerRadius

    Gets or sets the corner radius for the rounded rectangle container in linear gauge.

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

    A double that defines the rounded corner radius. The default value is 10.

    Remarks

    A rounded corner enhances the aesthetic quality of the container, especially in rectangular types.

    Type

    Gets or sets the type of container in linear gauge.

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

    A ContainerType enumeration indicating the container style, with a default of ContainerType.Normal.

    Remarks

    The type determines the container's visual structure, affecting elements like borders and corners.

    Width

    Gets or sets the width of the container in linear gauge.

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

    A double representing the container's width.

    Remarks

    The width setting helps ensure that the container fits neatly within its designated area.

    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