The event handler receives an argument of type PrintHeaderFooterAreaEventArgs containing data related to this event. The following PrintHeaderFooterAreaEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Cancel | Gets or sets the cancel flag. |
Cells | Returns the range of cells being printed. |
Graphics | Gets or sets the graphics device that does the printing. |
IsHeader | Gets whether the header or footer is being printed. |
PageNumber | Gets or sets the current page being printed. |
Rectangle | Gets or sets the rectangular area that represents the sheet. |