System.Drawing.Printing.PrintDocument.DefaultPageSettings Property

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

Syntax

[System.ComponentModel.Browsable(false)]
[System.ComponentModel.DesignerSerializationVisibility(System.ComponentModel.DesignerSerializationVisibility.Hidden)]
public PageSettings DefaultPageSettings { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

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.

Note:

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

Requirements

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