PrintPageEventArgs Constructor (Graphics, Rectangle, Rectangle, PageSettings)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Initializes a new instance of the PrintPageEventArgs class.

Namespace:   System.Drawing.Printing
Assembly:  System.Drawing (in System.Drawing.dll)

public PrintPageEventArgs(
	Graphics graphics,
	Rectangle marginBounds,
	Rectangle pageBounds,
	PageSettings pageSettings
)

Parameters

graphics
Type: System.Drawing.Graphics

The Graphics used to paint the item.

marginBounds
Type: System.Drawing.Rectangle

The area between the margins.

pageBounds
Type: System.Drawing.Rectangle

The total area of the paper.

pageSettings
Type: System.Drawing.Printing.PageSettings

The PageSettings for the page.

.NET Framework
Available since 1.1
Return to top
Show: