PrintDocument for WinForms
ToPageSettings(C1PrintDocument,PrinterSettings) メソッド


C1.PrintDocument.6 アセンブリ > C1.C1Preview 名前空間 > C1PageSettings クラス > ToPageSettings メソッド : ToPageSettings(C1PrintDocument,PrinterSettings) メソッド
The C1PrintDocument object providing the default units (needed if some sizes in the current object are specified in UnitTypeEnum.Default) and DPI (needed if some sizes in the current object are specified in UnitTypeEnum.Pixel). Can be null, but in that case the current object must not contain sizes specified in document default units or pixels.
A System.Drawing.Printing.PrinterSettings object used to create the resulting System.Drawing.Printing.PageSettings. If null, the default printer is used.
Creates an instance of the System.Drawing.Printing.PageSettings class, and initializes it with the properties of the current C1PageSettings object.
シンタックス
'宣言
 
Public Overloads Function ToPageSettings( _
   ByVal document As C1PrintDocument, _
   ByVal printerSettings As System.Drawing.Printing.PrinterSettings _
) As System.Drawing.Printing.PageSettings
'使用法
 
Dim instance As C1PageSettings
Dim document As C1PrintDocument
Dim printerSettings As System.Drawing.Printing.PrinterSettings
Dim value As System.Drawing.Printing.PageSettings
 
value = instance.ToPageSettings(document, printerSettings)
public System.Drawing.Printing.PageSettings ToPageSettings( 
   C1PrintDocument document,
   System.Drawing.Printing.PrinterSettings printerSettings
)

パラメータ

document
The C1PrintDocument object providing the default units (needed if some sizes in the current object are specified in UnitTypeEnum.Default) and DPI (needed if some sizes in the current object are specified in UnitTypeEnum.Pixel). Can be null, but in that case the current object must not contain sizes specified in document default units or pixels.
printerSettings
A System.Drawing.Printing.PrinterSettings object used to create the resulting System.Drawing.Printing.PageSettings. If null, the default printer is used.

戻り値の型

The newly created System.Drawing.Printing.PageSettings object.
参照

C1PageSettings クラス
C1PageSettings メンバ
オーバーロード一覧