menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class LinearGaugeContainer - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class LinearGaugeContainer

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

    Inheritance
    System.Object
    LinearGaugeContainer
    Namespace: Syncfusion.Blazor.LinearGauge
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class LinearGaugeContainer : OwningComponentBase

    Constructors

    LinearGaugeContainer()

    Declaration
    public LinearGaugeContainer()

    Properties

    BackgroundColor

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

    Declaration
    public string BackgroundColor { get; set; }
    Property Value
    Type Description
    System.String

    A System.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
    public RenderFragment ChildContent { get; set; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Components.RenderFragment

    A Microsoft.AspNetCore.Components.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
    public double Height { get; set; }
    Property Value
    Type Description
    System.Double

    A System.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
    public double Offset { get; set; }
    Property Value
    Type Description
    System.Double

    A System.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
    public double RoundedCornerRadius { get; set; }
    Property Value
    Type Description
    System.Double

    A System.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
    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
    public double Width { get; set; }
    Property Value
    Type Description
    System.Double

    A System.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
    Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder

    Dispose(Boolean)

    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
    System.Boolean disposing

    OnInitializedAsync()

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

    Declaration
    protected override Task OnInitializedAsync()
    Returns
    Type Description
    System.Threading.Tasks.Task

    System.Threading.Tasks.Task representing the asynchronous operation.

    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
    System.Threading.Tasks.Task

    System.Threading.Tasks.Task representing the asynchronous operation.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved