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)
Syntax
'Declaration
Sub TogglePortrait
'Usage
Dim instance As PageSetup
instance.TogglePortrait()
void TogglePortrait()
Remarks
If the specified sections have different page orientations, an error occurs.