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}{signature:
}
Signature
vb.net
vb.net
Public Property PageOrientation() As Orientation
{signature}
{remarks}MS Word 
Remarks

MS Word equivalent:

File

menu

>

Page

Setup...

>

Margins

tab

>

Orientation

section

\

-

\

-

\

(Make

sure

Apply

to:

This

section

is

selected

\) {remarks} {example}{code:csharp|title=C#}

)

Example
Code Block
csharp
csharp
titleC#


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

          //--- Set PageOrientation
          oSection.PageOrientation = Section.Orientation.Landscape;
        
{code} {code:
Code Block
vb.net
|title=
vb.net
titlevb.net
}


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

          '--- Set PageOrientation
          oSection.PageOrientation = Section.Orientation.Landscape
        
{code} {example}