Skip to main content

PrintingSystem.PageSettings Property

Gets the current page settings.

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.XtraPrinting.v23.2.dll

NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.Printing


public XtraPageSettings PageSettings { get; }

Property Value

Type Description

Current page settings.


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.


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