Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Description

Excerpt

Sets or returns a Section.Orientation object that represents the page orientation for this section. Possible values: Portrait, Landscape, Mixed

Signature
C#
C#
 public Orientation PageOrientation{ get; set; }
Signature
vb.net
vb.net
Public Property PageOrientation() As Orientation
Remarks

MS Word equivalent: File menu > Page Setup... > Margins tab > Orientation section -- (Make sure Apply to: This section is selected)

Example
Code Block
csharp
csharp
titleC#

          //--- Return PageOrientation
          Section.Orientation oPageOrientation = oSection.PageOrientation;

          //--- Set PageOrientation
          oSection.PageOrientation = Section.Orientation.Landscape;
        
Code Block
vb.net
vb.net
titlevb.net

          '--- Return PageOrientation
          Dim oPageOrientation As Section.Orientation = oSection.PageOrientation

          '--- Set PageOrientation
          oSection.PageOrientation = Section.Orientation.Landscape