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 numbersExamples
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
