[]
Converts the specified C1PageSettings to a PageSettings object, adjusting margins and paper size to match the original settings.
public static PageSettings ToPageSettings(C1PageSettings pageSettings)
Public Shared Function ToPageSettings(pageSettings As C1PageSettings) As PageSettings
| Type | Name | Description |
|---|---|---|
| C1PageSettings | pageSettings | The C1PageSettings object containing the page layout, margin, and orientation information to be converted. |
| Type | Description |
|---|---|
| PageSettings | A PageSettings object that reflects the converted settings, including margins and paper size. |
Creates an instance of the PageSettings class, and initializes it with the properties of the current C1PageSettings object.
public PageSettings ToPageSettings(PrinterSettings printerSettings)
Public Function ToPageSettings(printerSettings As PrinterSettings) As PageSettings
| Type | Name | Description |
|---|---|---|
| PrinterSettings | printerSettings | A PrinterSettings object used to create the resulting PageSettings. If null, the default printer is used. |
| Type | Description |
|---|---|
| PageSettings | The newly created PageSettings object. |