Back to Devexpress

XtraPageSettingsBase.Margins Property

corelibraries-devexpress-dot-xtraprinting-dot-xtrapagesettingsbase-12650b7a.md

latest3.3 KB
Original Source

XtraPageSettingsBase.Margins Property

Gets the margins of a report page.

Namespace : DevExpress.XtraPrinting

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

NuGet Package : DevExpress.Printing.Core

Declaration

csharp
public DXMargins Margins { get; }
vb
Public ReadOnly Property Margins As DXMargins

Property Value

Type
DXMargins

Property Paths

You can access this nested property as listed below:

LibraryObject TypePath to Margins
Cross-Platform Class LibraryPrintingSystemBase

.PageSettings .Margins

| | WPF Controls | IDocumentViewModel |

.PageSettings .Margins

|

Remarks

For more information, refer to the System.Drawing.Printing.Margins topic in MSDN.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Margins 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#L25

csharp
case DevExpress.XtraPrinting.MarginSide.All:
    Margins = (sender as DevExpress.XtraPrinting.PrintingSystemBase).PageSettings.Margins;
    CreateDocument();

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

vb
Case DevExpress.XtraPrinting.MarginSide.All
    Margins = (TryCast(sender, DevExpress.XtraPrinting.PrintingSystemBase)).PageSettings.Margins
    CreateDocument()

See Also

MarginsF

MinMargins

XtraPageSettingsBase Class

XtraPageSettingsBase Members

DevExpress.XtraPrinting Namespace