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 line numbering modulus. This setting is used to set whether line numbers display on every line, every 2nd line, etc. Setting this to 0 (zero) will display no line numbers. Setting this to 1 will display a number by every line. Setting this to 2 will display a number by every 2nd line, etc.

Signature
C#
C#
 public int LineNumModulus{ get; set; }
{signature}{signature:
}
Signature
vb.net
vb.net
Public Property LineNumModulus() As Integer
{signature}
{remarks}MS Word 
Remarks

MS Word equivalent:

File

>

Page

Setup...

>

Layout

tab

>

Preview

section

\

(make

sure

Apply

To:

This

Section

is

selected

\

)

>

Line

Numbers...

button

>

Count

by:

{remarks} {example}{code:csharp|title=C#}

Example
Code Block
csharp
csharp
titleC#


          //--- Return LineNumModulus
          int lineNumModulus = oSection.LineNumModulus;

          //--- Set LineNumModulus
          oSection.LineNumModulus = 2;
        
{code} {code:
Code Block
vb.net
|title=
vb.net
titlevb.net
}


          '--- Return LineNumModulus
          Dim lineNumModulus As Integer = oSection.LineNumModulus

          '--- Set LineNumModulus
          oSection.LineNumModulus = 2
        
{code} {example}