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

XtraPageSettingsBase.Assign(MarginsF, PaperKind, SizeF, 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(
    MarginsF margins,
    PaperKind paperKind,
    SizeF pageSize,
    bool landscape
)

Parameters

Name Type Description
margins DevExpress.XtraPrinting.Native.MarginsF

The margins (measured in 1/300 of an inch) of a report page. This value is assigned to the XtraPageSettingsBase.MarginsF property.

paperKind PaperKind

A PaperKind value that specifies one of the standard paper sizes. This value is assigned to the XtraPageSettingsBase.PaperKind property.

pageSize SizeF

A Size object that specifies the paper size of the document pages. This value is assigned to the XtraPageSettingsBase.UsablePageSize property.

landscape Boolean

true to print a page in landscape orientation; otherwise, false. This value is assigned to the XtraPageSettingsBase.Landscape property.

See Also