DocumentPage.Size Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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
Available since 3.0
Return to top