PrintDocument for WinForms | ComponentOne
C1.PrintDocument.4.5.2 Assembly / C1.C1Preview Namespace / C1PageSettings Class / ToPageSettings Method / ToPageSettings(C1PrintDocument) Method
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.

In This Topic
    ToPageSettings(C1PrintDocument) Method
    In This Topic
    Creates an instance of the System.Drawing.Printing.PageSettings class, and initializes it with the properties of the current C1PageSettings object.
    Syntax
    'Declaration
     
    Public Overloads Function ToPageSettings( _
       ByVal document As C1PrintDocument _
    ) As PageSettings
    public PageSettings ToPageSettings( 
       C1PrintDocument document
    )

    Parameters

    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.

    Return Value

    The newly created System.Drawing.Printing.PageSettings object.
    See Also