PrintPageEventArgs

EventArgsReferences
Event arguments when printing a page.

Constructors

PrintPageEventArgs

#
public PrintPageEventArgs(Graphics graphics, SizeF pageSize, int currentPage)
Initializes a new instance of the PrintPageEventArgs class.
graphics (Graphics)Graphics context to paint the page.
pageSize (SizeF)Size of the page in device units.
currentPage (int)Current page that is being printed.

Properties

CurrentPage

#
public int CurrentPage { get; }
Gets the current page that is being printed.

Graphics

#
public Graphics Graphics { get; }
Gets the graphics context to draw the page's content.

PageSize

#
public SizeF PageSize { get; }
Gets the size of the page, in device units.
Remarks: This should be used to position elements on the page when using the Graphics to draw the page's content.
The size of the page.