Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

Excerpt

Sets or returns a boolean that represents whether or not page numbering will restart at the beginning of this section.

Signature
C#
C#

 public boolean RestartPageNum{ get; set; }
Signature
vb.net
vb.net

Public Property RestartPageNum() As Boolean
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)

Example
Code Block
csharp
csharp
titleC#
            //--- Return RestartPageNum
          bool restartPageNum = oSection.RestartPageNum;

          //--- Set RestartPageNum
          oSection.RestartPageNum = true;
        
Code Block
vb.net
vb.net
titlevb.net
            '--- Return RestartPageNum
          Dim restartPageNum As Boolean = oSection.RestartPageNum

          '--- Set RestartPageNum
          oSection.RestartPageNum = True