corelibraries-devexpress-dot-xtraprinting-dot-linkbase-82bf3a8c.md
Gets or sets the margins of a report page (measured in hundredths of an inch).
Namespace : DevExpress.XtraPrinting
Assembly : DevExpress.Printing.v25.2.Core.dll
NuGet Package : DevExpress.Printing.Core
public DXMargins Margins { get; set; }
Public Property Margins As DXMargins
| Type |
|---|
| DXMargins |
For more information, refer to the Margins topic in MSDN.
The following code snippets (auto-collected from DevExpress Examples) contain references 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.
}
componentLink.Margins = new System.Drawing.Printing.Margins(20, 20, 20, 20);
componentLink.MinMargins = new System.Drawing.Printing.Margins(0, 0, 0, 0);
reporting-winforms-merge-reports-runtime/CS/reportMerging/Form1.cs#L40
link.CustomPaperSize = new Size(width, height);
link.Margins = new DXMargins(reports.First<XtraReport>().Margins.Left, reports.First<XtraReport>().Margins.Right, reports.First<XtraReport>().Margins.Top, reports.Last<XtraReport>().Margins.Bottom);
link.CreateDetailArea += link_CreateDetailArea;
End If
componentLink.Margins = New System.Drawing.Printing.Margins(20, 20, 20, 20)
componentLink.MinMargins = New System.Drawing.Printing.Margins(0, 0, 0, 0)
reporting-winforms-merge-reports-runtime/VB/reportMerging/Form1.vb#L49
Me.link.CustomPaperSize = New System.Drawing.Size(width, height)
Me.link.Margins = New DevExpress.Drawing.DXMargins(System.Linq.Enumerable.First(Of DevExpress.XtraReports.UI.XtraReport)(reports).Margins.Left, System.Linq.Enumerable.First(Of DevExpress.XtraReports.UI.XtraReport)(reports).Margins.Right, System.Linq.Enumerable.First(Of DevExpress.XtraReports.UI.XtraReport)(reports).Margins.Top, System.Linq.Enumerable.Last(Of DevExpress.XtraReports.UI.XtraReport)(reports).Margins.Bottom)
AddHandler Me.link.CreateDetailArea, AddressOf Me.link_CreateDetailArea
See Also