Class DataGridExcelExportStartOptions
Namespace: Syncfusion.UI.Xaml.DataGrid.Export
Assembly: Syncfusion.GridExport.WinUI.dll
Syntax
public sealed class DataGridExcelExportStartOptions : GridHandledEventArgs
Constructors
DataGridExcelExportStartOptions(IWorksheet, ExportCellType, IStyle, Int32, Object)
Declaration
public DataGridExcelExportStartOptions(IWorksheet worksheet, ExportCellType exportCellType, IStyle style, int childLevel, object dataGrid)
Parameters
Type | Name | Description |
---|---|---|
IWorksheet | worksheet | |
ExportCellType | exportCellType | |
IStyle | style | |
System.Int32 | childLevel | |
System.Object | dataGrid |
Properties
CellType
Gets the type of cell being exported.
Declaration
public ExportCellType CellType { get; }
Property Value
Type | Description |
---|---|
ExportCellType | One of the ExportCellType enumeration values that specifies the type of the cell being exported. The default value is HeaderCell. |
Level
Gets the level of the DataGrid being exported.
Declaration
public int Level { get; }
Property Value
Type |
---|
System.Int32 |
Remarks
The level of the DataGrid is 0 for the parent DataGrid, 1 for the first level nested DataGrid, and so on.
Style
Gets or sets the style for the cell being exported.
Declaration
public IStyle Style { get; }
Property Value
Type |
---|
IStyle |
WorkSheet
Gets or sets the worksheet for the cell being exported.
Declaration
public IWorksheet WorkSheet { get; set; }
Property Value
Type |
---|
IWorksheet |