corelibraries-devexpress-dot-xtraprinting-dot-xtrapagesettingsbase-12650b7a.md
Gets the margins of a report page.
Namespace : DevExpress.XtraPrinting
Assembly : DevExpress.Printing.v25.2.Core.dll
NuGet Package : DevExpress.Printing.Core
public DXMargins Margins { get; }
Public ReadOnly Property Margins As DXMargins
| Type |
|---|
| DXMargins |
You can access this nested property as listed below:
| Library | Object Type | Path to Margins |
|---|---|---|
| Cross-Platform Class Library | PrintingSystemBase |
.PageSettings .Margins
| | WPF Controls | IDocumentViewModel |
.PageSettings .Margins
|
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.
case DevExpress.XtraPrinting.MarginSide.All:
Margins = (sender as DevExpress.XtraPrinting.PrintingSystemBase).PageSettings.Margins;
CreateDocument();
Case DevExpress.XtraPrinting.MarginSide.All
Margins = (TryCast(sender, DevExpress.XtraPrinting.PrintingSystemBase)).PageSettings.Margins
CreateDocument()
See Also