Back to Devexpress

GaugeBase.PrintAsync() Method

blazor-devexpress-dot-blazor-dot-base-dot-gaugebase-28f1d95f.md

latest1.3 KB
Original Source

GaugeBase.PrintAsync() Method

Invokes the browser’s Print dialog.

Namespace : DevExpress.Blazor.Base

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
public ValueTask PrintAsync()

Returns

TypeDescription
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:

razor
<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

GaugeBase Class

GaugeBase Members

DevExpress.Blazor.Base Namespace