PageSetupEditorForm.Setup(MarginsF, MarginsF, Boolean, PrinterSettings.PaperSizeCollection, Size, PaperKind) Method
Specifies the page settings applied to a document and displayed in the Page Setup dialog.
Namespace: DevExpress.XtraPrinting.Preview
Assembly: DevExpress.XtraPrinting.v18.2.dll
Declaration
public void Setup(
MarginsF marginsF,
MarginsF minMarginsF,
bool landscape,
PrinterSettings.PaperSizeCollection paperSizes,
Size pageSize,
PaperKind paperKind
)
Parameters
Name | Type | Description |
---|---|---|
marginsF | DevExpress.XtraPrinting.Native.MarginsF | The margins (measured in 1/300 of an inch) of a report page. This value is assigned to the PageSetupEditorForm.MarginsF property. |
minMarginsF | DevExpress.XtraPrinting.Native.MarginsF | The minimum allowed margins (measured in 1/300 of an inch) of a report page. This value is assigned to the PageSetupEditorForm.MinMarginsF property. |
landscape | Boolean | true, if the page orientation is landscape; otherwise, false. This value is assigned to the PageSetupEditorForm.Landscape property. |
paperSizes | PrinterSettings.PaperSizeCollection | A PrinterSettings.PaperSizeCollection value, specifying the collection of available paper sizes. |
pageSize | Size | A Size structure, specifying the required page size. The corresponding paper size is selected from the list of available paper sizes and assigned to the PageSetupEditorForm.PaperSize property. If no matching paper size is found, it is selected based on the specified paperKind value. |
paperKind | PaperKind | A PaperKind enumeration value, specifying the paper kind. The corresponding paper size is selected from the list of available paper sizes and assigned to the PageSetupEditorForm.PaperSize property. If no matching paper size is found, it is selected based on the specified pageSize value. |