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.v20.2.Core.dll


public virtual void Assign(
    Margins margins,
    PaperKind paperKind,
    bool landscape
Public Overridable Sub Assign(
    margins As Margins,
    paperKind As PaperKind,
    landscape As Boolean


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.


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

See Also