Skip to end of metadata
Go to start of metadata

Description

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

C#
 public Orientation PageOrientation{ get; set; }
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)

Examples

C#

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

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

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

          '--- Set PageOrientation
          oSection.PageOrientation = Section.Orientation.Landscape
        
  • No labels