System.Drawing.Printing.PrintDocument.DefaultPageSettings Property

Gets or sets page settings that are used as defaults for all pages to be printed.


public PageSettings DefaultPageSettings { set; get; }


Documentation for this section has not yet been entered.


You can specify several default page settings through the PrintDocument.DefaultPageSettings property. For example, the PageSettings.Color property specifies whether the page prints in color, the PageSettings.Landscape property specifies landscape or portrait orientation, and the PageSettings.Margins property specifies the margins of the page.

To specify settings on a page-by-page basis, handle the PrintDocument.PrintPage or PrintDocument.QueryPageSettings event and modify the PrintPageEventArgs.PageSettings argument included in the System.Drawing.Printing.PrintPageEventArgs or System.Drawing.Printing.QueryPageSettingsEventArgs, respectively.


After printing has started, changes to page settings through the PrintDocument.DefaultPageSettings property will not affect pages being printed.


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