Represents page setup properties (left margin, bottom margin, paper size, and so on) of a section.
For a list of all members of this type, see PageSetup Members.
System.Object
Aspose.Editor.Core.Attribute.AttrGroup
Aspose.Editor.Core.Attribute.RangeAttrGroup
Aspose.Editor.Desktop.PageSetup
[Visual Basic]NotInheritable Public Class PageSetup
Remarks
You do not create instances of the PageSetup class directly. You access PageSetup as a property of objects that can have section formatting, for example PageSetup of the Section or Range 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")
Requirements
Namespace: Aspose.Editor.Desktop
Assembly: Aspose.Editor.Desktop (in Aspose.Editor.Desktop.dll)
See Also
PageSetup Members | Aspose.Editor.Desktop Namespace | Section | Range