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 a {{boolean}} that represents whether or not page numbering will restart at the beginning of this section.{excerpt}
{signature:C#}
 public boolean RestartPageNum{ get; set; }
{signature}{signature:vb.net}
Public Property RestartPageNum() As Boolean
{signature}
{remarks}This is set to false by default \(it will continue numbering pages from the previous section\).

MS Word equivalent: Insert menu > Page Numbers... > Format... button > Page numbering section > Continue from previous section \( false\) OR Start at: \(true\)

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

          //--- Return RestartPageNum
          bool restartPageNum = oSection.RestartPageNum;

          //--- Set RestartPageNum
          oSection.RestartPageNum = true;
        {code}
{code:vb.net|title=vb.net}

          '--- Return RestartPageNum
          Dim restartPageNum As Boolean = oSection.RestartPageNum

          '--- Set RestartPageNum
          oSection.RestartPageNum = True
        {code}

{example}