Freigeben über


DocumentBase.PageSetup Property

Definition

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

public:
 property Microsoft::Office::Interop::Word::PageSetup ^ PageSetup { Microsoft::Office::Interop::Word::PageSetup ^ get(); void set(Microsoft::Office::Interop::Word::PageSetup ^ value); };
public Microsoft.Office.Interop.Word.PageSetup PageSetup { get; set; }
member this.PageSetup : Microsoft.Office.Interop.Word.PageSetup with get, set
Public Property PageSetup As PageSetup

Property Value

A PageSetup that is associated with the document.

Examples

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.
        Interop.Word.WdOrientation.wdOrientLandscape;
}
Private Sub DocumentPageSetup()
    Me.PageSetup.Orientation = Microsoft.Office.Interop.Word.WdOrientation. _
        wdOrientLandscape
End Sub 

Applies to