[]
        
(Showing Draft Content)

C1.C1Preview.C1PageSettings.ToPageSettings

ToPageSettings Method

ToPageSettings(C1PrintDocument, PrinterSettings)

Creates an instance of the PageSettings class, and initializes it with the properties of the current C1PageSettings object.

Declaration
public PageSettings ToPageSettings(C1PrintDocument document, PrinterSettings printerSettings)
Public Function ToPageSettings(document As C1PrintDocument, printerSettings As PrinterSettings) As PageSettings
Parameters
Type Name Description
C1PrintDocument document

The C1PrintDocument object providing the default units (needed if some sizes in the current object are specified in Default) and DPI (needed if some sizes in the current object are specified in Pixel). Can be null, but in that case the current object must not contain sizes specified in document default units or pixels.

PrinterSettings printerSettings

A PrinterSettings object used to create the resulting PageSettings. If null, the default printer is used.

Returns
Type Description
PageSettings

The newly created PageSettings object.

ToPageSettings(C1PrintDocument)

Creates an instance of the PageSettings class, and initializes it with the properties of the current C1PageSettings object.

Declaration
public PageSettings ToPageSettings(C1PrintDocument document)
Public Function ToPageSettings(document As C1PrintDocument) As PageSettings
Parameters
Type Name Description
C1PrintDocument document

The C1PrintDocument object providing the default units (needed if some sizes in the current object are specified in Default) and DPI (needed if some sizes in the current object are specified in Pixel). Can be null, but in that case the current object must not contain sizes specified in document default units or pixels.

Returns
Type Description
PageSettings

The newly created PageSettings object.

ToPageSettings()

Creates an instance of the PageSettings class, and initializes it with the properties of the current C1PageSettings object.

Declaration
public PageSettings ToPageSettings()
Public Function ToPageSettings() As PageSettings
Returns
Type Description
PageSettings

The newly created PageSettings object.