The event handler receives an argument of type CustomExportCellEventArgs containing data related to this event.
The following
CustomExportCellEventArgs properties provide information specific to this event.
Property |
Description |
Appearance |
Gets the appearance settings used to paint the cell currently being exported.
|
ApplyAppearanceToBrickStyle |
Specifies whether to apply the appearance settings to a brick.
|
Brick |
Provides access to the brick that represents the contents and appearance of a cell, when it is printed or exported.
|
ColumnField |
Gets the column field which corresponds to the current cell.
|
ColumnFieldIndex |
For internal use.
|
ColumnIndex |
Gets the visual index of the column that contains the current cell.
|
ColumnValue |
Gets information about a column field value that corresponds to the current cell.
|
DataField |
Gets the data field which identifies the column where the processed cell resides.
|
Focused |
Gets whether the processed cell is focused.
|
FormatType |
Gets the type of formatting.
|
IsTextFit |
Gets whether the processed cell text is entirely displayed.
|
Rect |
Defines the size and location of the printed or exported cell.
|
RowField |
Gets the row field which corresponds to the current cell.
|
RowFieldIndex |
For internal use.
|
RowIndex |
Gets the visual index of the row that contains the current cell.
|
RowValue |
Gets information about a row field value that corresponds to the current cell.
|
Selected |
Gets whether the processed cell is selected.
|
Text |
Gets the text displayed within the processed cell.
|
Value |
Gets the processed cell value.
|
The CustomExportCell event is raised for each cell when the PivotGrid is being exported. You can handle this event to change the cell appearance and contents in a printed document.
Use the CustomExportCellEventArgs.Appearance parameter to specify the cell appearance and contents in a printed document such as background and foreground colors, font settings, etc.
Use the DevExpress.PivotGrid.Printing.CustomExportCellEventArgsBase.ColumnIndex and DevExpress.PivotGrid.Printing.CustomExportCellEventArgsBase.RowIndex parameters to obtain the position of the cells to be customized in a printed document.
You can also change the cell appearance relying on the cell value or displayed text. To obtain the cell value or displayed text, use the DevExpress.PivotGrid.Printing.CustomExportCellEventArgsBase.Value and DevExpress.PivotGrid.Printing.CustomExportCellEventArgsBase.Text parameters, respectively.
The CustomExportCellEventArgs.Selected event parameter allows you to change the cell appearance in a printed document for selected cells.