Back to Devexpress

BrickGraphics.ClientPageSize Property

corelibraries-devexpress-dot-xtraprinting-dot-brickgraphics-5304a480.md

latest2.7 KB
Original Source

BrickGraphics.ClientPageSize Property

Returns the dimensions of a report page without margins.

Namespace : DevExpress.XtraPrinting

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

NuGet Package : DevExpress.Printing.Core

Declaration

csharp
public SizeF ClientPageSize { get; }
vb
Public ReadOnly Property ClientPageSize As SizeF

Property Value

TypeDescription
SizeF

Page dimensions without margins.

|

Remarks

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

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

vb
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

PageUnit

BrickGraphics Class

BrickGraphics Members

DevExpress.XtraPrinting Namespace