XtraPageSettingsBase.Assign(Margins, Margins, PaperKind, Size, Boolean, String) Method
Assigns the page margins, minimum margins, paper kind and page orientation of a document, simultaneously.
Namespace: DevExpress.XtraPrinting
Assembly: DevExpress.Printing.v19.1.Core.dll
Declaration
public void Assign(
Margins margins,
Margins minMargins,
PaperKind paperKind,
Size pageSize,
bool landscape,
string paperName
)
Parameters
Name | Type | Description |
---|---|---|
margins | Margins | A Margins object that specifies the margins of the document. |
minMargins | Margins | A Margins object that specifies the minimum value of the document margins. |
paperKind | PaperKind | A PaperKind value that specifies one of the standard paper sizes. |
pageSize | Size | A Size object that specifies the paper size of the document pages. |
landscape | Boolean | true to print a page in landscape orientation; otherwise, false. |
paperName | String | A String value that specifies the name of the custom paper which is used in the printer that the document is going to be printed on. |
Remarks
The margins, minMargins, paperKind, landscape and paperName parameters affect the values of the XtraPageSettingsBase.Margins, XtraPageSettingsBase.MinMargins, XtraPageSettingsBase.PaperKind, XtraPageSettingsBase.Landscape and XtraPageSettingsBase.PaperName properties correspondingly.