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 boolean that represents if Word will display line numbers next to a paragraph. This property has no effect in documents or sections with no line numbers.

Signature
C#
C#
 public boolean LineNumberingAllowed{ get; set; }
Signature
vb.net
vb.net
Public Property LineNumberingAllowed() As Boolean
Remarks

MS Word equivalent: Format menu > Paragraph... > Line and Page Breaks tab > Pagination section > Suppress line numbers

Example
Code Block
csharp
csharp
titleC#

          //--- Return LineNumberingAllowed
          bool lineNumberingAllowed = oParagraphFormatting.LineNumberingAllowed;

          //--- Set LineNumberingAllowed
          oParagraphFormatting.LineNumberingAllowed = true;
        
Code Block
vb.net
vb.net
titlevb.net

          '--- Return LineNumberingAllowed
          Dim lineNumberingAllowed As Boolean = oParagraphFormatting.LineNumberingAllowed

          '--- Set LineNumberingAllowed
          oParagraphFormatting.LineNumberingAllowed = True