A newer version of this page is available.
Switch to the current version.
PrintingSystem.PageSettings Property
Gets the current page settings.
Namespace: DevExpress.XtraPrinting
Assembly: DevExpress.XtraPrinting.v18.2.dll
Declaration
[Browsable(false)]
public XtraPageSettings PageSettings { get; }
<Browsable(False)>
Public ReadOnly Property PageSettings As XtraPageSettings
Property Value
Type | Description |
---|---|
XtraPageSettings | Current page settings. |
Remarks
This property accesses the XtraPageSettings object containing current page settings, such as margins and paper size. These settings are also displayed in the PageSetup dialog, invoked by calling the PrintingSystem.PageSetup method.
Examples
This example demonstrates how to use the XtraPageSettings class.
using System.Drawing.Printing;
using DevExpress.XtraPrinting;
// ...
// Create an XtraPageSettings instance.
XtraPageSettings pageSettings = printingSystem1.PageSettings;
// Specify the paper kind and page orientation.
pageSettings.PaperKind = PaperKind.Letter;
pageSettings.Landscape = true;
// Specify margins.
pageSettings.LeftMargin = 20;
pageSettings.RightMargin = 20;
pageSettings.TopMargin = 20;
pageSettings.BottomMargin = 20;
See Also
Feedback