Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
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)
Syntax
'Declaration
Public Property PageSetup As PageSetup
public PageSetup PageSetup { get; set; }
Property Value
Type: Microsoft.Office.Interop.Word.PageSetup
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 Sub DocumentPageSetup()
Me.PageSetup.Orientation = Microsoft.Office.Interop.Word.WdOrientation. _
wdOrientLandscape
End Sub
private void DocumentPageSetup()
{
this.PageSetup.Orientation = Microsoft.Office.
Interop.Word.WdOrientation.wdOrientLandscape;
}
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.