Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

PrintingSystem.PageSettings Property

Gets the current page settings.

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.XtraPrinting.v24.2.dll

NuGet Package: DevExpress.Win.Printing

#Declaration

[Browsable(false)]
public XtraPageSettings PageSettings { get; }

#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.

#Example

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