Class LinearGaugeContainer
Defines the container axis for an axis in linear gauge component.
Inherited Members
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 |
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
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
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
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. |