Class LinearGaugeLine
Defines the lines of an axis in Linear gauge component.
Inherited Members
Namespace: Syncfusion.Blazor.LinearGauge
Assembly: Syncfusion.Blazor.dll
Syntax
public class LinearGaugeLine : SfOwningComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Constructors
LinearGaugeLine()
Declaration
public LinearGaugeLine()
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 that represents the custom content within the axis line component. |
Remarks
ChildContent allows embedding custom UI elements or additional configurations within the line context.
Color
Gets or sets the color for the axis line.
Declaration
[Parameter]
public string Color { get; set; }
Property Value
| Type | Description |
|---|---|
| string | A string specifying the line color, using valid CSS color values such as hex, rgba, or named colors. |
Remarks
Proper color selection is essential for ensuring the axis line's visibility and match with gauge design.
DashArray
Gets or sets the dash-array of the axis line.
Declaration
[Parameter]
public string DashArray { get; set; }
Property Value
| Type | Description |
|---|---|
| string | A string representing the dash pattern, supporting creativity in line styling. |
Remarks
DashArray enables the creation of dashed lines, enhancing the gauge's stylistic presentation.
Height
Gets or sets the height of the axis line.
Declaration
[Parameter]
public double Height { get; set; }
Property Value
| Type | Description |
|---|---|
| double | A double that determines the line's vertical dimension in the gauge. |
Remarks
Choosing the appropriate height ensures the line fits well within the overall gauge layout.
Offset
Gets or sets the offset to position the axis line in linear gauge.
Declaration
[Parameter]
public double Offset { get; set; }
Property Value
| Type | Description |
|---|---|
| double | A double specifying how far the line is offset from its original position. |
Remarks
The offset provides flexibility in line positioning relative to the gauge's dimensions.
Width
Gets or sets the width of the axis line.
Declaration
[Parameter]
public double Width { get; set; }
Property Value
| Type | Description |
|---|---|
| double | A double specifying the thickness of the line, with a default value of 2. |
Remarks
Width control allows for adjustments to the visual prominence and definition of the line.
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. |