Class GridPdfExportExtension
Provides the extensions for exporting SfDataGrid into PDF.
Inheritance
Namespace: Syncfusion.UI.Xaml.Grid.Converter
Assembly: Syncfusion.SfGridConverter.UWP.dll
Syntax
public static class GridPdfExportExtension : Object
Methods
ExportToPdf(SfDataGrid)
Exports the dataGrid to PDF.
Declaration
public static PdfDocument ExportToPdf(this SfDataGrid sfgrid)
Parameters
Type | Name | Description |
---|---|---|
SfDataGrid | sfgrid | Specifies the SfDataGrid. |
Returns
Type | Description |
---|---|
PdfDocument | Returns the instance of class PdfDocument. |
ExportToPdf(SfDataGrid, ICollectionViewAdv, PdfExportingOptions)
Exports the dataGrid to PdfGrid.
Declaration
public static PdfDocument ExportToPdf(this SfDataGrid sfgrid, ICollectionViewAdv gridCollectionView, PdfExportingOptions pdfExportingOptions)
Parameters
Type | Name | Description |
---|---|---|
SfDataGrid | sfgrid | Specifies the SfDataGrid. |
ICollectionViewAdv | gridCollectionView | Specifies the SfDataGrid view. |
PdfExportingOptions | pdfExportingOptions | Specifies the instance of class PdfExportingOptions |
Returns
Type | Description |
---|---|
PdfDocument | Returns the instance of class PdfDocument. |
ExportToPdf(SfDataGrid, PdfExportingOptions)
Exports the dataGrid to PDF.
Declaration
public static PdfDocument ExportToPdf(this SfDataGrid sfgrid, PdfExportingOptions pdfExportingOptions)
Parameters
Type | Name | Description |
---|---|---|
SfDataGrid | sfgrid | Specifies the SfDataGrid. |
PdfExportingOptions | pdfExportingOptions | Specifies the instance of class PdfExportingOptions |
Returns
Type | Description |
---|---|
PdfDocument | Returns the instance of PdfDocument. |
ExportToPdf(SfDataGrid, ObservableCollection<Object>, PdfExportingOptions)
Exports the dataGrid to PDF.
Declaration
public static PdfDocument ExportToPdf(this SfDataGrid sfgrid, ObservableCollection<object> selectedItems, PdfExportingOptions pdfExportingOptions)
Parameters
Type | Name | Description |
---|---|---|
SfDataGrid | sfgrid | Specifies the SfDataGrid. |
System.Collections.ObjectModel.ObservableCollection<System.Object> | selectedItems | Specifies the selected items. |
PdfExportingOptions | pdfExportingOptions | Specifies the instance of class PdfExportingOptions |
Returns
Type | Description |
---|---|
PdfDocument | Returns the instance of class PdfDocument. |
ExportToPdfGrid(SfDataGrid, ICollectionViewAdv, PdfExportingOptions)
Exports the dataGrid to PdfGrid.
Declaration
public static PdfGrid ExportToPdfGrid(this SfDataGrid sfgrid, ICollectionViewAdv gridCollectionView, PdfExportingOptions pdfExportingOptions)
Parameters
Type | Name | Description |
---|---|---|
SfDataGrid | sfgrid | Specifies the SfDataGrid. |
ICollectionViewAdv | gridCollectionView | Specifies the SfDataGrid view. |
PdfExportingOptions | pdfExportingOptions | Specifies the instance of class PdfExportingOptions |
Returns
Type | Description |
---|---|
PdfGrid | Returns the instance of PdfGrid. |
ExportToPdfGrid(SfDataGrid, ObservableCollection<Object>, PdfExportingOptions)
Exports the dataGrid to PdfGrid.
Declaration
public static PdfGrid ExportToPdfGrid(this SfDataGrid sfgrid, ObservableCollection<object> selectedItems, PdfExportingOptions pdfExportingOptions)
Parameters
Type | Name | Description |
---|---|---|
SfDataGrid | sfgrid | Specifies the SfDataGrid. |
System.Collections.ObjectModel.ObservableCollection<System.Object> | selectedItems | Specifies the selected items. |
PdfExportingOptions | pdfExportingOptions | Specifies the instance of class PdfExportingOptions |
Returns
Type | Description |
---|---|
PdfGrid | Returns the instance of class PdfGrid. |