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


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


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.


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