[]
        
(Showing Draft Content)

C1.Win.Document.C1PageSettings.ToPageSettings

ToPageSettings Method

ToPageSettings(C1PageSettings)

Converts the specified C1PageSettings to a PageSettings object, adjusting margins and paper size to match the original settings.

Declaration
public static PageSettings ToPageSettings(C1PageSettings pageSettings)
Public Shared Function ToPageSettings(pageSettings As C1PageSettings) As PageSettings
Parameters
Type Name Description
C1PageSettings pageSettings

The C1PageSettings object containing the page layout, margin, and orientation information to be converted.

Returns
Type Description
PageSettings

A PageSettings object that reflects the converted settings, including margins and paper size.

ToPageSettings(PrinterSettings)

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

Declaration
public PageSettings ToPageSettings(PrinterSettings printerSettings)
Public Function ToPageSettings(printerSettings As PrinterSettings) As PageSettings
Parameters
Type Name Description
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.