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

Namespace:  C1.C1Preview
Assembly:  C1.C1Report.2 (in C1.C1Report.2.dll)

Syntax

C#
public PageSettings ToPageSettings(
	C1PrintDocument document
)
Visual Basic
Public Function ToPageSettings ( _
	document As C1PrintDocument _
) As PageSettings

Parameters

document
Type: C1.C1Preview..::..C1PrintDocument
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.

Return Value

The newly created PageSettings object.

See Also