corelibraries-devexpress-dot-xtraprinting-dot-printingsystembase-f0903d1a.md
Gets the current page settings.
Namespace : DevExpress.XtraPrinting
Assembly : DevExpress.Printing.v25.2.Core.dll
NuGet Package : DevExpress.Printing.Core
[Browsable(false)]
public XtraPageSettingsBase PageSettings { get; }
<Browsable(False)>
Public ReadOnly Property PageSettings As XtraPageSettingsBase
| Type | Description |
|---|---|
| XtraPageSettingsBase |
An XtraPageSettingsBase object containing the current page settings.
|
This property accesses the XtraPageSettingsBase 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.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the PageSettings property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
private void PrintingSystem_PageSettingsChanged(object sender, EventArgs e) {
XtraPageSettingsBase pageSettings = ((PrintingSystemBase)sender).PageSettings;
PaperKind = pageSettings.PaperKind;
Private Sub PrintingSystem_PageSettingsChanged(ByVal sender As Object, ByVal e As EventArgs)
Dim pageSettings As XtraPageSettingsBase = DirectCast(sender, PrintingSystemBase).PageSettings
PaperKind = pageSettings.PaperKind
See Also