Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
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.



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

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

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

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

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

{example}
Signature
C#C#
Wiki Markup
{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.{excerpt}
{signature:C#}
 public int LineNumModulus{ get; set; }
Signature
{signature}{signature:vb.net
vb.net
}
Public Property LineNumModulus() As Integer
Remarks
MS Word
{signature}
{remarks}MS Word equivalent: File > Page Setup... > Layout tab > Preview section \(make sure Apply To: This Section is selected\) > Line Numbers... button > Count by:
Example
Code Block
csharpcsharp
titleC#
Code Block
vb.nettitle