Class PageOrientation
Represents the possible orientations of a page in a document.
Inheritance
Namespace: IronWord.Models.Enums
Assembly: IronWord.dll
Syntax
public sealed class PageOrientation : Enum
Set whether a section prints upright or sideways by assigning a PageOrientation to PageSetup.Orientation. Portrait is the default tall layout for ordinary text pages, and Landscape rotates the page to a wide layout for tables, charts, or images that need the extra horizontal room.
var setup = new PageSetup { Orientation = PageOrientation.Landscape };Fields
Landscape
The page is wider than it is tall, with the text and content appearing horizontally.
Declaration
public const PageOrientation Landscape
Field Value
| Type | Description |
|---|---|
| PageOrientation |
Portrait
The page is taller than it is wide, with the text and content appearing vertically.
Declaration
public const PageOrientation Portrait
Field Value
| Type | Description |
|---|---|
| PageOrientation |
value__
Declaration
public int value__
Field Value
| Type | Description |
|---|---|
| System.Int32 |