Version

PageSize Property (SectionProperties)

Returns or sets the size for all pages in the associated section.
Syntax
'Declaration
 
Public Property PageSize As Nullable(Of SizeF)
public Nullable<SizeF> PageSize {get; set;}
Remarks

When set explicitly, the unit of measurement used to express the property value is defined by the Unit property.

When the PageOrientation property is left at its default setting, the PageSize property defines the effective orientation. In cases where the width is greater than the height, the PageOrientation property resolves to 'Landscape'.

In the absence of an explicit setting, this property resolves to a value that is equal to 8.5 inches in width by 11 inches in height, or, if the PageOrientation property is explicitly set to 'Landscape', 11" x 8.5".

The maximum page size in MS Word is 22" x 22" (see KB article 95109). An exception is thrown if the specified value is outside this range.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also