Skip to main content
A newer version of this page is available.

XtraPageSettings.Assign(Margins, PaperKind, String, Boolean) Method

Assigns the page margins, paper kind, paper name and page orientation of a document, simultaneously.

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.XtraPrinting.v18.2.dll

Declaration

public override void Assign(
    Margins margins,
    PaperKind paperKind,
    string paperName,
    bool landscape
)

Parameters

Name Type Description
margins Margins

A Margins object which specifies the margins of the document.

paperKind PaperKind

A PaperKind value which specifies one of the standard paper sizes.

paperName String

A String value which specifies the name of the custom paper which is used in the printer that the document is going to be printed on.

landscape Boolean

true to print a page in landscape orientation; otherwise, false.

Remarks

The margins, paperKind, paperName and landscape parameters affect the values of the XtraPageSettingsBase.Margins, XtraPageSettingsBase.PaperKind, XtraPageSettingsBase.PaperName and XtraPageSettingsBase.Landscape properties correspondingly.

See Also