Version

PageOrientation Enumeration

Constants which define the orientation for a page in the document.
Syntax
'Declaration
 
Public Enum PageOrientation 
   Inherits System.Enum
public enum PageOrientation : System.Enum 
Members
MemberDescription
DefaultThe actual value is determined by the page size. If the width of the page size is greater than the height, the orientation resolves to 'Landscape'; if the width is equal or less than the height, it resolves to 'Portrait'.
LandscapePages in the associated section are printed at a 90 degree rotation with respect to the normal page orientation. The page size is adjusted, if necessary, so that the width is greater than or equal to the height, by swapping the values as defined by the page size.
PortraitPages in the associated section are printed in portrait mode, with no rotation. The page size is adjusted, if necessary, so that the height is greater than or equal to the width, by swapping the values as defined by the page size.
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