Search results

Methods in Blazor Linear Gauge component

28 Jul 2021 / 1 minute to read

Using methods in Linear Gauge component

You can create object for the linear gauge component using @ref and call the ChangePoinerValue method as shown in the following example.

Copied to clipboard
@using Syncfusion.Blazor.LinearGauge

<button style="margin-left:34px" @onclick="ChangePoinerValue">Update pointer value</button>
<SfLinearGauge @ref="lineargauge" Width="250px" Height="250px">

@code {
    SfLinearGauge lineargauge;
    void ChangePoinerValue()
        lineargauge.SetPointerValue(0, 0, 30);

Calling methods in linear gauge

Available methods


Description: Dynamically set the annotation content to the linear gauge.

Return: void

Argument name Description
annotationIndex Specifies the annotation index
content Specifies the annotation text
axisValue Specifies the axis value


Description: Dynamically set the pointer value to the linear gauge.

Return: void

Argument name Description
axis index Specifies the axis index
pointerIndex Specifies the pointer index
value Specifies the pointer value


Description: The component is rendered again. Whenever you make changes with the gauge properties.

Return: void