corelibraries-devexpress-dot-xtraprinting-dot-brickgraphics-5304a480.md
Returns the dimensions of a report page without margins.
Namespace : DevExpress.XtraPrinting
Assembly : DevExpress.Printing.v25.2.Core.dll
NuGet Package : DevExpress.Printing.Core
public SizeF ClientPageSize { get; }
Public ReadOnly Property ClientPageSize As SizeF
| Type | Description |
|---|---|
| SizeF |
Page dimensions without margins.
|
This property returns the dimensions of a page without margins. The dimensions are returned in units defined via the BrickGraphics.PageUnit property.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ClientPageSize 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-merge-reports-runtime/CS/reportMerging/Form1.cs#L55
}
SizeF pageSize = e.Graph.ClientPageSize;
float sectionHeight = reports != null && reports.Count() > 1 ? pageSize.Height / reports.Count() : 0;
reporting-winforms-merge-reports-runtime/VB/reportMerging/Form1.vb#L68
Dim pageSize As System.Drawing.SizeF = e.Graph.ClientPageSize
Dim sectionHeight As Single = If(Me.reports IsNot Nothing AndAlso Me.reports.Count() > 1, pageSize.Height / Me.reports.Count(), 0)
See Also