Specifies settings that apply to a single, printed page.
Assembly: System.Drawing (in System.Drawing.dll)
Gets the size of the page, taking into account the page orientation specified by the Landscape property.
Gets or sets a value indicating whether the page should be printed in color.
Gets the x-coordinate, in hundredths of an inch, of the hard margin at the left of the page.
Gets the y-coordinate, in hundredths of an inch, of the hard margin at the top of the page.
Gets or sets a value indicating whether the page is printed in landscape or portrait orientation.
Gets or sets the margins for this page.
Gets or sets the paper size for the page.
Gets or sets the page's paper source; for example, the printer's upper tray.
Gets the bounds of the printable area of the page for the printer.
Gets or sets the printer resolution for the page.
Gets or sets the printer settings associated with the page.
Creates a copy of this.
Copies the relevant information from theto the specified DEVMODE structure.
Determines whether the specified object is equal to the current object.(Inherited from Object.)
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)
Serves as the default hash function. (Inherited from Object.)
Copies relevant information to thefrom the specified DEVMODE structure.
This API supports the product infrastructure and is not intended to be used directly from your code. Converts the Object::ToString().)to string form.(Overrides
The PrintDocument::DefaultPageSettings property. To specify settings on a page-by-page basis, handle the PrintDocument::PrintPage or PrintDocument::QueryPageSettings event and modify the argument included in the PrintPageEventArgs or QueryPageSettingsEventArgs, respectively.class is used to specify settings that modify the way a page will be printed. Typically, you set default settings for all pages to be printed through the
The following example demonstrates handling the PrintPage event and checking the argument of PrintPageEventArgs. To use this code, add a PrintDocument component named PrintDocument1 to a Windows Form and associate its PrintPage event with the printDocument1_PrintPage method in the example.
Available since 1.1
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.