Back to Devexpress

PrintingSystemBase.PageSettings Property

corelibraries-devexpress-dot-xtraprinting-dot-printingsystembase-f0903d1a.md

latest3.2 KB
Original Source

PrintingSystemBase.PageSettings Property

Gets the current page settings.

Namespace : DevExpress.XtraPrinting

Assembly : DevExpress.Printing.v25.2.Core.dll

NuGet Package : DevExpress.Printing.Core

Declaration

csharp
[Browsable(false)]
public XtraPageSettingsBase PageSettings { get; }
vb
<Browsable(False)>
Public ReadOnly Property PageSettings As XtraPageSettingsBase

Property Value

TypeDescription
XtraPageSettingsBase

An XtraPageSettingsBase object containing the current page settings.

|

Remarks

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.

reporting-winforms-dynamic-size-image-on-page-settings/CS/WindowsFormsApplication1/XtraReport1.cs#L33

csharp
private void PrintingSystem_PageSettingsChanged(object sender, EventArgs e) {
    XtraPageSettingsBase pageSettings = ((PrintingSystemBase)sender).PageSettings;
    PaperKind = pageSettings.PaperKind;

reporting-winforms-dynamic-size-image-on-page-settings/VB/WindowsFormsApplication1/XtraReport1.vb#L31

vb
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

PrintingSystemBase Class

PrintingSystemBase Members

DevExpress.XtraPrinting Namespace