| Visual Basic (Declaration) | |
|---|---|
Public Event PrintBackground() As PrintBackgroundEventHandler | |
| Visual Basic (Usage) | Copy Code |
|---|---|
| |
| C# | |
|---|---|
public event PrintBackgroundEventHandler PrintBackground() | |
The event handler receives an argument of type PrintBackgroundEventArgs containing data related to this event. The following PrintBackgroundEventArgs properties provide information specific to this event.
| Property | Description |
|---|---|
| Graphics | Gets or sets the graphics device that does the printing. |
| PageNumber | Gets or sets the current page being printed. |
| SheetRectangle | Gets or sets the rectangle area representing the sheet. |
This example raises the PrintBackground event.
| C# | Copy Code |
|---|---|
private void fpSpread1_PrintBackground(object sender, FarPoint.Win.Spread.PrintBackgroundEventArgs e) | |
| Visual Basic | Copy Code |
|---|---|
Private Sub FpSpread1_PrintBackground(ByVal sender As Object, ByVal e As | |
This event is raised by the OnPrintBackground method before each page is printed.
For more details on the individual event arguments, refer to PrintBackgroundEventArgs members.
Reference
FpSpread ClassFpSpread Members
PrintBackgroundEventArgs Class