Specifies page orientation.
[Visual Basic]
Public Enum Orientation
[C#]public enum Orientation
Remarks
Page orientation is specified in the PageSetup object.
Example
Changes page setup (section formatting) for all sections in the document.
[C#]
Document doc = new Document(MyPath + "Welcome.xml");
Range range = doc.GetRange();
PageSetup ps = range.PageSetup;
ps.PaperSize = PaperSize.A3;
ps.Orientation = Orientation.Landscape;
ps.TopMargin = 72;
ps.BottomMargin = 72;
ps.RightMargin = 54;
ps.LeftMargin = 54;
doc.Save(MyPath + "ExRange.PageSetupAllDocument Out.xml");
[Visual Basic]
Dim doc As New Document(MyPath & "Welcome.xml")
Dim range As Range = doc.GetRange()
Dim ps As PageSetup = range.PageSetup
ps.PaperSize = PaperSize.A3
ps.Orientation = Orientation.Landscape
ps.TopMargin = 72
ps.BottomMargin = 72
ps.RightMargin = 54
ps.LeftMargin = 54
doc.Save(MyPath & "ExRange.PageSetupAllDocument Out.xml")
Members
| Member Name | Description | Value |
| None | Default value. Do not use. | 0 |
| Portrait | Portrait page orientation (narrow and tall). | 1 |
| Landscape | Landscape page orientation (wide and short). | 2 |
Requirements
Namespace: Aspose.Editor.Client
Assembly: Aspose.Editor.Client (in Aspose.Editor.Client.dll)
See Also
Aspose.Editor.Client Namespace | PageSetup