CustomPrintEventArgs
Overview
CustomPrintEventArgs is a class in Aspose.PDF FOSS for .NET.
Inherits from: EventArgs.
Event args raised by PdfViewer.CustomPrint: the printer surface the page has just been drawn on, so a handler can draw over it.
This class declares 2 methods for CustomPrintEventArgs objects in .NET programs.
Available methods include: CustomPrintEventArgs.
Public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package.
Properties: Graphics, PageNumber.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
PageNumber | int | Read/Write | The 1-based page being printed. |
Graphics | System.Drawing.Graphics? | Read/Write | The printer surface the page was drawn on. |
Methods
| Signature | Description |
|---|---|
CustomPrintEventArgs() | Creates args carrying no surface. |
CustomPrintEventArgs(pageNumber: int, graphics: System.Drawing.Graphics) | Creates args for the given page and printer surface. |