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 horizontal distance of the left margin from the left edge of the page for this section. One twip = (1/20 pt) or (1/1440 in)

Signature
C#
C#
 public int LeftMargin{ get; set; }
Signature
vb.net
vb.net
Public Property LeftMargin() As Integer
Remarks

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

Example
Code Block
csharp
csharp
titleC#

          //--- Return LeftMargin
          int leftMargin = oSection.LeftMargin;

          //--- Set LeftMargin to 1 inch
          oSection.LeftMargin = 1440;
        
Code Block
vb.net
vb.net
titlevb.net

          '--- Return LeftMargin
          Dim leftMargin As Integer = oSection.LeftMargin

          '--- Set LeftMargin to 1 inch
          oSection.LeftMargin = 1440