PageSetup.TogglePortrait MethodÂ
Switches between portrait and landscape page orientations for a document or section.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)
Usage
Dim pageSetup1 As PageSetup
pageSetup1.TogglePortrait()
Syntax
Sub TogglePortrait()
void TogglePortrait();
public: Void TogglePortrait();
public void TogglePortrait();
function TogglePortrait();
Remarks
If the specified sections have different page orientations, an error occurs.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000
Target Platforms
See Also
Reference
PageSetup Interface
Microsoft.Office.Interop.Word Namespace