Class LinearGaugeRange
Defines the range element for an axis in linear gauge component.
Inherited Members
Namespace: Syncfusion.Blazor.LinearGauge
Assembly: Syncfusion.Blazor.dll
Syntax
public class LinearGaugeRange : SfOwningComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Constructors
LinearGaugeRange()
Declaration
public LinearGaugeRange()
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 representing custom content to be included within the range. |
Remarks
Customize the appearance of the range by setting this parameter with a custom UI fragment.
Color
Gets or sets the color of the axis range.
Declaration
[Parameter]
public string Color { get; set; }
Property Value
| Type | Description |
|---|---|
| string | A string specifying the color of the range using CSS color formats. |
Remarks
This property sets the fill color of the range to visually distinguish it from other elements.
End
Gets or sets the end value for the range in axis.
Declaration
[Parameter]
public double End { get; set; }
Property Value
| Type | Description |
|---|---|
| double | A double indicating the end point of the range. |
Remarks
The end value determines where the range stops on the axis.
EndWidth
Gets or sets the width of the end of the range in axis.
Declaration
[Parameter]
public double EndWidth { get; set; }
Property Value
| Type | Description |
|---|---|
| double | A double representing the width in pixels at the range's end. Default is 10. |
Remarks
Adjust the end width to change the visual thickness of the range at its endpoint.
Offset
Gets or sets the value to position the range in the axis.
Declaration
[Parameter]
public string Offset { get; set; }
Property Value
| Type | Description |
|---|---|
| string | A string specifying the offset from the axis base position. |
Remarks
Use the offset to shift the range position on the axis.
Position
Gets or sets the position to place the ranges in the axis.
Declaration
[Parameter]
public Position Position { get; set; }
Property Value
| Type | Description |
|---|---|
| Position | A Position enum value positioning the range relative to the axis. Default is Outside. |
Remarks
Position settings define where the range appears in relation to the axis's line.
Start
Gets or sets the start value for the range in axis.
Declaration
[Parameter]
public double Start { get; set; }
Property Value
| Type | Description |
|---|---|
| double | A double indicating the start point of the range. |
Remarks
The start value sets the initial position of the range on the axis.
StartWidth
Gets or sets the width of the start of the range in axis.
Declaration
[Parameter]
public double StartWidth { get; set; }
Property Value
| Type | Description |
|---|---|
| double | A double representing the width in pixels at the range's start. Default is 10. |
Remarks
Adjust the start width to change the visual thickness of the range at its starting point.
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. |