Class DataGridCellExcelExportOptions
Provides data for the DataGridCellExcelExport event.
Namespace: Syncfusion.UI.Xaml.DataGrid.Export
Assembly: Syncfusion.GridExport.WinUI.dll
Syntax
public sealed class DataGridCellExcelExportOptions : GridHandledEventArgs
Constructors
DataGridCellExcelExportOptions(IRange, ExportCellType, Object, Object, String, GridViewDefinition, Int32, Object, ExportMode, IPropertyAccessProvider)
Declaration
public DataGridCellExcelExportOptions(IRange exportRange, ExportCellType exportCellType, object cellValue, object exportNodeEntry, string columnName, GridViewDefinition viewDefinition, int childLevel, object dataGrid, ExportMode exportMode, IPropertyAccessProvider propertyAccessProvider)
Parameters
Type | Name | Description |
---|---|---|
IRange | exportRange | |
ExportCellType | exportCellType | |
System.Object | cellValue | |
System.Object | exportNodeEntry | |
System.String | columnName | |
GridViewDefinition | viewDefinition | |
System.Int32 | childLevel | |
System.Object | dataGrid | |
ExportMode | exportMode | |
IPropertyAccessProvider | propertyAccessProvider |
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. |
CellValue
Gets the value of the cell being exported.
Declaration
public object CellValue { get; }
Property Value
Type |
---|
System.Object |
ColumnName
Gets the name of the column for the cell being exported.
Declaration
public string ColumnName { get; }
Property Value
Type |
---|
System.String |
ExportMode
Gets or sets the mode for exporting the cell.
Declaration
public ExportMode ExportMode { get; set; }
Property Value
Type | Description |
---|---|
ExportMode | One of the ExportMode enumeration values that specifies the mode for exporting the cell. The default value is Value. |
GridViewDefinition
Gets the view definition for the cell being exported.
Declaration
public GridViewDefinition GridViewDefinition { get; }
Property Value
Type |
---|
GridViewDefinition |
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.
NodeEntry
Gets the node entry for the cell being exported.
Declaration
public object NodeEntry { get; }
Property Value
Type |
---|
System.Object |
PropertyAccessProvider
Gets the property access provider for the cell being exported.
Declaration
public IPropertyAccessProvider PropertyAccessProvider { get; }
Property Value
Type |
---|
IPropertyAccessProvider |
Range
Gets or sets the range of cells to be exported.
Declaration
public IRange Range { get; set; }
Property Value
Type |
---|
IRange |