Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Description

Excerpt

Sets or returns an int that represents the page height for this section in twips. One twip = (1/20

pt

\

)

or

\

(1/1440

in

\

)

{excerpt} {signature:C#}

Signature
C#
C#
public int PageHeight{ get; set; }
{signature}{signature:
}
Signature
vb.net
vb.net
Public Property PageHeight() As Integer
{signature}
{remarks}Page height may not be smaller than 
Remarks

Page height may not be smaller than .1"

\

(144

twips

\

)

or

larger

than

22"

\

(31680

twips

\

).

Values

beyond

these

will

be

automatically

adjusted.

MS

Word

equivalent:

File

menu

>

Page

Setup...

>

Paper

tab

>

Paper

size:

section

>

Height:

\

-

\

-

\

(Make

sure

Apply

to:

This

section

is

selected

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

)

Example
Code Block
csharp
csharp
titleC#
          
//--- Return PageHeight
          int pageHeight = oSection.PageHeight;

          //--- Set PageHeight to 11 inches
          oSection.PageHeight = 15840;
        
{code} {code:
Code Block
vb.net
|title=
vb.net
titlevb.net
}
          
'--- Return PageHeight
          Dim pageHeight As Integer = oSection.PageHeight

          '--- Set PageHeight to 11 inches
          oSection.PageHeight = 15840
        
{code} {example}