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
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:vb.net}
Public Property LineNumModulus() As Integer
{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:

{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}