Skip to main content
All docs
V24.2

GaugeBase.PrintAsync() Method

Invokes the browser’s Print dialog.

Namespace: DevExpress.Blazor.Base

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

Declaration

public ValueTask PrintAsync()

Returns

Type Description
ValueTask

A structure that stores an awaitable result of an asynchronous operation.

Remarks

The following code snippet opens the Print dialog after a user clicks a custom Print button:

<DxBarGauge Width="50%"
            Height="50%"
            StartValue="-5"
            EndValue="5"
            BaseValue="0"
            @ref=@BarGauge
            Values="@Values">
    @* ... *@
</DxBarGauge>

<DxButton Text="Print" Click=Print />

@code {
    DxBarGauge BarGauge;
    double[] Values = new double[] { -2.13, 1.48, -3.09, 4.52, 4.9, 3.9 };
    async Task Print() {
        await BarGauge.PrintAsync();
    }
    // ...
}
See Also