'Declaration Public Property PageOrientation As PageOrientation
public PageOrientation PageOrientation {get; set;}
Under the default setting, the actual value is resolved based on the ratio of the width to the height of the page size. If the width is greater than the height, this property resolves to 'Landscape', otherwise it resolves to 'Portrait'.
When the PageOrientation property is explicitly set, the value of the PageSize property is adjusted if necessary so that the ratio of width to height is in agreement with the page orientation. For example, if the page size is explicitly set to have a width of five inches and a height of seven, and PageOrientation is explicitly set to 'Landscape', the page size is inverted so as not to contradict the orientation.
Target Platforms: Windows 8.1, 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
View on GitHub