Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

DocumentBase.PageSetup Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets or sets a PageSetup that is associated with the document.

Namespace:  Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)
public PageSetup PageSetup { get; set; }

Property Value

Type: Microsoft.Office.Interop.Word.PageSetup
A PageSetup that is associated with the document.

The following code example changes the orientation of the document to landscape. To use this example, run it from the ThisDocument class in a document-level project.

private void DocumentPageSetup()
    this.PageSetup.Orientation = Microsoft.Office.
© 2014 Microsoft. All rights reserved.