public event EventHandler<CustomExportHeaderEventArgs> CustomExportHeader
Public Event CustomExportHeader As EventHandler(Of CustomExportHeaderEventArgs)
The CustomExportHeader event's data class is CustomExportHeaderEventArgs. The following properties provide information specific to this event:
|Appearance||Gets or sets the appearance object used to paint the current header.|
|ApplyAppearanceToBrickStyle||Specifies whether to apply the appearance settings to a brick. Inherited from CustomPrintEventArgs.|
|Brick||Provides access to the brick that represents the contents and appearance of a cell, when it is printed or exported. Inherited from CustomPrintEventArgs.|
|Caption||Gets the processed field caption. Inherited from CustomExportHeaderEventArgsBase<T>.|
|Field||Gets the processed field. Inherited from CustomExportHeaderEventArgsBase<T>.|
|Rect||Defines the size and location of the printed or exported cell. Inherited from CustomPrintEventArgs.|
The CustomExportHeader event is raised for each field when the PivotGrid is being exported. You can handle this event to change the field header appearance and contents in a printed document.
Use the CustomExportHeaderEventArgs.Appearance property to specify the appearance of the field header such as background and foreground colors, font settings, etc.
Use the event parameter CustomExportHeaderEventArgsBase<T>.Field property to obtain the field header that needs to be customized. You can use the CustomExportHeaderEventArgsBase<T>.Caption property to identify the field header by its caption.
The CustomExportHeader event is not in effect during the export in Data-Aware mode. To customize cells in Data-Aware export mode, use the PivotXlsExportOptions.CustomizeCell and PivotXlsxExportOptions.CustomizeCell events.