Back to Devexpress

DataGridExportExtensions.ExportToImageAsync(DataGridView, Stream) Method

maui-devexpress-dot-maui-dot-datagrid-dot-datagridexportextensions-dot-exporttoimageasync-x28-devexpress-dot-maui-dot-datagrid-dot-datagridview-system-dot-io-dot-stream-x29.md

latest1.7 KB
Original Source

DataGridExportExtensions.ExportToImageAsync(DataGridView, Stream) Method

Exports DataGridView data to a stream with the specified export options. You can use the ExportToImageAsync(DataGridView, Stream, ImageExportOptions) method overload to specify another image’s format.

Namespace : DevExpress.Maui.DataGrid

Assembly : DevExpress.Maui.DataGrid.Export.dll

NuGet Package : DevExpress.Maui.DataGrid.Export

Declaration

csharp
public static Task ExportToImageAsync(
    this DataGridView grid,
    Stream stream
)

Parameters

NameTypeDescription
gridDataGridView

The exported DataGridView.

| | stream | Stream |

A stream to which the DataGridView sends the created file.

|

Returns

TypeDescription
Task

A task that allows you to wait for the export is ended.

|

See Also

DataGridExportExtensions Class

DataGridExportExtensions Members

DevExpress.Maui.DataGrid Namespace