# GrapeCity.Documents.Word.PageNumbering

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Word_PageNumbering" data-uid="GrapeCity.Documents.Word.PageNumbering" class="text-break">PageNumbering Class
</h1>
  <div class="markdown level0 summary"><p>Represents page numbering settings for all page numbers that appear in the contents of a section.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">PageNumbering</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Documents.Word.html">GrapeCity.Documents.Word</a></h6>
  <h6><strong>Assembly</strong>: DS.Documents.Word.dll</h6>
  <h5 id="GrapeCity_Documents_Word_PageNumbering_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class PageNumbering</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class PageNumbering</code></pre>
  </div>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Documents_Word_PageNumbering_ChapterPageSeparator" data-uid="GrapeCity.Documents.Word.PageNumbering.ChapterPageSeparator">
          <a class="xref" href="GrapeCity.Documents.Word.PageNumbering.ChapterPageSeparator.html#GrapeCity_Documents_Word_PageNumbering_ChapterPageSeparator">ChapterPageSeparator</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the separator character used between the chapter number and the page number.</p>
<p>
If the <a class="xref" href="GrapeCity.Documents.Word.PageNumbering.HeadingLevelForChapter.html#GrapeCity_Documents_Word_PageNumbering_HeadingLevelForChapter">HeadingLevelForChapter</a> property is 0, or its specified heading level does not have an associated numbering format, 
this value is ignored, since no chapter number is output by the field.
</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_PageNumbering_HeadingLevelForChapter" data-uid="GrapeCity.Documents.Word.PageNumbering.HeadingLevelForChapter">
          <a class="xref" href="GrapeCity.Documents.Word.PageNumbering.HeadingLevelForChapter.html#GrapeCity_Documents_Word_PageNumbering_HeadingLevelForChapter">HeadingLevelForChapter</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the one-based index of the heading style applied to chapter titles in the document,
to be used as chapter headings in all page numbers for a section,
by locating the nearest heading of that style and extracting the numbering information.</p>
<p>
Can be a number from 0 through 8, corresponding to heading levels 1 through 9.
</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_PageNumbering_IncludeChapterNumber" data-uid="GrapeCity.Documents.Word.PageNumbering.IncludeChapterNumber">
          <a class="xref" href="GrapeCity.Documents.Word.PageNumbering.IncludeChapterNumber.html#GrapeCity_Documents_Word_PageNumbering_IncludeChapterNumber">IncludeChapterNumber</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether a chapter number is included with page numbers or a caption label.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_PageNumbering_NumberStyle" data-uid="GrapeCity.Documents.Word.PageNumbering.NumberStyle">
          <a class="xref" href="GrapeCity.Documents.Word.PageNumbering.NumberStyle.html#GrapeCity_Documents_Word_PageNumbering_NumberStyle">NumberStyle</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the page number format.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_PageNumbering_RestartPageNumbering" data-uid="GrapeCity.Documents.Word.PageNumbering.RestartPageNumbering">
          <a class="xref" href="GrapeCity.Documents.Word.PageNumbering.RestartPageNumbering.html#GrapeCity_Documents_Word_PageNumbering_RestartPageNumbering">RestartPageNumbering</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether page numbering restarts at the beginning of a section.</p>
<p>
If false, overrides the <a class="xref" href="GrapeCity.Documents.Word.PageNumbering.StartingNumber.html#GrapeCity_Documents_Word_PageNumbering_StartingNumber">StartingNumber</a> property so that page numbering can continue from the previous section.
</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_PageNumbering_StartingNumber" data-uid="GrapeCity.Documents.Word.PageNumbering.StartingNumber">
          <a class="xref" href="GrapeCity.Documents.Word.PageNumbering.StartingNumber.html#GrapeCity_Documents_Word_PageNumbering_StartingNumber">StartingNumber</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the starting page number of a section.</p>
<p>
The <a class="xref" href="GrapeCity.Documents.Word.PageNumbering.RestartPageNumbering.html#GrapeCity_Documents_Word_PageNumbering_RestartPageNumbering">RestartPageNumbering</a> property, if set to false,
will override this property so that page numbering can continue from the previous section.
</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Documents_Word_PageNumbering_ClearFormatting" data-uid="GrapeCity.Documents.Word.PageNumbering.ClearFormatting">
          <a class="xref" href="GrapeCity.Documents.Word.PageNumbering.ClearFormatting.html#GrapeCity_Documents_Word_PageNumbering_ClearFormatting">ClearFormatting()</a>
        </td>
        <td class="markdown level1 summary"><p>Resets page numbering to default values.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
