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.LineNumbering object that represents the line numbering restart policy for this section. There are 3 options:

Signature
C#
C#
 public LineNumbering LineNumberingType{ get; set; }
Signature
vb.net
vb.net
Public Property LineNumberingType() As LineNumbering
Remarks

This setting defaults to PerPage (line numbering restarts for each page).

MS Word equivalent: File > Page Setup... > Layout tab > Preview section (make sure Apply To: This Section is selected) > Line Numbers... button > Numbering section

Example
Code Block
csharp
csharp
titleC#

          //--- Return LineNumbering
          Section.LineNumbering oLineNumbering = oSection.LineNumberingType;

          //--- Set LineNumbering
          oSection.LineNumberingType = Section.LineNumbering.Restart;
        
Code Block
vb.net
vb.net
titlevb.net

          '--- Return LineNumbering
          Dim oLineNumbering As Section.LineNumbering = oSection.LineNumberingType

          '--- Set LineNumbering
          oSection.LineNumberingType = Section.LineNumbering.Restart