CustomPrintEventArgs

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

NameTypeAccessDescription
PageNumberintRead/WriteThe 1-based page being printed.
GraphicsSystem.Drawing.Graphics?Read/WriteThe printer surface the page was drawn on.

Methods

SignatureDescription
CustomPrintEventArgs()Creates args carrying no surface.
CustomPrintEventArgs(pageNumber: int, graphics: System.Drawing.Graphics)Creates args for the given page and printer surface.

See Also

 English