Skip to main content
A newer version of this page is available.
All docs
V18.2

XtraPageSettingsBase.Assign(Margins, PaperKind, Size, Boolean) Method

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

Namespace: DevExpress.XtraPrinting

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

Declaration

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

Parameters

Name Type Description
margins Margins

A Margins object that specifies the page margins.

paperKind PaperKind

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

paperSize Size

A Size object that specifies the size of the document’s pages.

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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Assign(Margins, PaperKind, Size, Boolean) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also