System.Drawing.Printing.PrintPageEventArgs Class

Provides data for the PrintDocument.PrintPage event.

See Also: PrintPageEventArgs Members


public class PrintPageEventArgs : EventArgs


The PrintPageEventArgs.MarginBounds property retrieves the rectangular area that represents the portion of the page between the margins. The PrintPageEventArgs.PageBounds property retrieves the rectangular area that represents the total area of the page. The PrintPageEventArgs.Graphics property defines the graphics object with which to do the painting. The PrintPageEventArgs.PageSettings property retrieves the printer settings for the current page. The remaining properties indicate whether a print job should be canceled or whether a print job has more pages.

For more information about printing with Windows Forms, see the System.Drawing.Printing namespace overview. If you wish to print from a Windows Presentation Foundation application, see the System.Printing namespace.


Namespace: System.Drawing.Printing
Assembly: System.Drawing (in System.Drawing.dll)
Assembly Versions: 1.0.3300.0, 1.0.5000.0,