Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

DocumentPage.Size Property

When overridden in a derived class, gets the actual size of a page as it will be following any cropping.

Namespace:  System.Windows.Documents
Assembly:  PresentationCore (in PresentationCore.dll)

public virtual Size Size { get; }

Property Value

Type: System.Windows.Size
A Size representing the height and width of the page.

This property represents the post-cropping size of the physical page. Hence, it is not necessarily the physical size of the sheets before they are cropped.

Use the protected SetSize method to set this property.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft