Back to Devexpress

LinkBase.Margins Property

corelibraries-devexpress-dot-xtraprinting-dot-linkbase-82bf3a8c.md

latest3.9 KB
Original Source

LinkBase.Margins Property

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

Declaration

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

Property Value

Type
DXMargins

Remarks

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.

winforms-dashboard-print-and-export-visual-representation-as-is/CS/DashboardExport/CustomDashboardExporter.cs#L32

csharp
}
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

csharp
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;

winforms-dashboard-print-and-export-visual-representation-as-is/VB/DashboardExport/CustomDashboardExporter.vb#L32

vb
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

vb
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

LinkBase Class

LinkBase Members

DevExpress.XtraPrinting Namespace