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 an int that represents the vertical distance of the top margin from the top edge of the page for this section. One twip = (1/20 pt) or (1/1440 in)

Signature
C#
C#
 public int TopMargin{ get; set; }
{signature}{signature:
}
Signature
vb.net
vb.net
Public Property TopMargin() As Integer
{signature}
{remarks}MS Word 
Remarks

MS Word equivalent:

File

menu

>

Page

Setup...

>

Margins

tab

>

Top:

\

-

\

-

\

(Make

sure

Apply

to:

This

section

is

selected

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

)

Example
Code Block
csharp
csharp
titleC#


          //--- Return TopMargin
          int topMargin = oSection.TopMargin;

          //--- Set TopMargin to 1 inch
          oSection.TopMargin = 1440;
        
{code} {code:
Code Block
vb.net
|title=
vb.net
titlevb.net
}


          '--- Return TopMargin
          Dim topMargin As Integer = oSection.TopMargin

          '--- Set TopMargin to 1 inch
          oSection.TopMargin = 1440
        
{code} {example}