PageSettings 构造函数

定义

初始化 PageSettings 类的新实例。Initializes a new instance of the PageSettings class.

重载

PageSettings()

使用默认打印机初始化 PageSettings 类的新实例。Initializes a new instance of the PageSettings class using the default printer.

PageSettings(PrinterSettings)

使用指定打印机初始化 PageSettings 类的新实例。Initializes a new instance of the PageSettings class using a specified printer.

PageSettings()

使用默认打印机初始化 PageSettings 类的新实例。Initializes a new instance of the PageSettings class using the default printer.

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

注解

无参数构造函数将所有字段初始化为其默认值。The parameterless constructor initializes all fields to their default values.

通常,你不会创建的实例 PageSettings ,而是使用 PrintDocument.DefaultPageSettings 来设置所有页的设置。Typically, you do not create an instance of PageSettings, but instead use the PrintDocument.DefaultPageSettings to set settings for all pages.

适用于

PageSettings(PrinterSettings)

使用指定打印机初始化 PageSettings 类的新实例。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)

参数

printerSettings
PrinterSettings

PrinterSettings,它描述要使用的打印机。The PrinterSettings that describes the printer to use.

注解

PageSettings构造函数类似于初始化的新实例 PageSettings 并设置 PrinterSettings 属性。The PageSettings constructor is similar to initializing a new instance of PageSettings and setting the PrinterSettings property.

适用于