Rediger

Del via


PageSettings Constructors

Definition

Initializes a new instance of the PageSettings class.

Overloads

PageSettings()

Initializes a new instance of the PageSettings class using the default printer.

PageSettings(PrinterSettings)

Initializes a new instance of the PageSettings class using a specified printer.

PageSettings()

Source:
PageSettings.cs
Source:
PageSettings.cs

Initializes a new instance of the PageSettings class using the default printer.

public:
 PageSettings();
public PageSettings ();
Public Sub New ()

Remarks

The parameterless constructor initializes all fields to their default values.

Typically, you do not create an instance of PageSettings, but instead use the PrintDocument.DefaultPageSettings to set settings for all pages.

Applies to

PageSettings(PrinterSettings)

Source:
PageSettings.cs
Source:
PageSettings.cs

Initializes a new instance of the PageSettings class using a specified printer.

public:
 PageSettings(System::Drawing::Printing::PrinterSettings ^ printerSettings);
public PageSettings (System.Drawing.Printing.PrinterSettings printerSettings);
new System.Drawing.Printing.PageSettings : System.Drawing.Printing.PrinterSettings -> System.Drawing.Printing.PageSettings
Public Sub New (printerSettings As PrinterSettings)

Parameters

printerSettings
PrinterSettings

The PrinterSettings that describes the printer to use.

Remarks

The PageSettings constructor is similar to initializing a new instance of PageSettings and setting the PrinterSettings property.

Applies to