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

XtraPageSettingsBase.Assign(Margins, PaperKind, Boolean) Method

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

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.Printing.v18.2.Core.dll

Declaration

public virtual void Assign(
    Margins margins,
    PaperKind paperKind,
    bool landscape
)

Parameters

Name Type Description
margins Margins

A Margins object that specifies the page margins of the document.

paperKind PaperKind

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

landscape Boolean

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

Remarks

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

See Also