Skip to end of metadata
Go to start of metadata

Description

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.

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

Remarks

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

Examples

C#

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

          //--- Set LineNumberingAllowed
          oParagraphFormatting.LineNumberingAllowed = true;
        
vb.net

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

          '--- Set LineNumberingAllowed
          oParagraphFormatting.LineNumberingAllowed = True
        
  • No labels