[]
Represents the portrait or landscape printing mode.
Use this enum with page setup APIs to control how a worksheet is oriented when printed or exported to paginated formats.
public enum PageOrientation
Public Enum PageOrientation
IPageSetup pageSetup = worksheet.PageSetup;
pageSetup.Orientation = PageOrientation.Landscape;
PageOrientation orientation = pageSetup.Orientation;
| Name | Description |
|---|---|
| Landscape | Landscape mode. |
| Portrait | Portrait mode. |