# GrapeCity.Documents.Word.Fields.TocPageNumberOptions

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Word_Fields_TocPageNumberOptions" data-uid="GrapeCity.Documents.Word.Fields.TocPageNumberOptions" class="text-break">TocPageNumberOptions Class
</h1>
  <div class="markdown level0 summary"><p>Represents options used when showing page numbers in a TOC field result.</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">TocPageNumberOptions</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Documents.Word.Fields.html">GrapeCity.Documents.Word.Fields</a></h6>
  <h6><strong>Assembly</strong>: DS.Documents.Word.dll</h6>
  <h5 id="GrapeCity_Documents_Word_Fields_TocPageNumberOptions_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class TocPageNumberOptions</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class TocPageNumberOptions</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_Fields_TocPageNumberOptions_OmitLevels" data-uid="GrapeCity.Documents.Word.Fields.TocPageNumberOptions.OmitLevels">
          <a class="xref" href="GrapeCity.Documents.Word.Fields.TocPageNumberOptions.OmitLevels.html#GrapeCity_Documents_Word_Fields_TocPageNumberOptions_OmitLevels">OmitLevels</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the range of TOC entry levels for which the page numbers should be omitted.</p>
<p>The default value is <a class="xref" href="GrapeCity.Documents.Word.Fields.OutlineLevelRange.IsEmpty.html#GrapeCity_Documents_Word_Fields_OutlineLevelRange_IsEmpty">IsEmpty</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Fields_TocPageNumberOptions_PrefixSeparator" data-uid="GrapeCity.Documents.Word.Fields.TocPageNumberOptions.PrefixSeparator">
          <a class="xref" href="GrapeCity.Documents.Word.Fields.TocPageNumberOptions.PrefixSeparator.html#GrapeCity_Documents_Word_Fields_TocPageNumberOptions_PrefixSeparator">PrefixSeparator</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the character that separates the prefix (see <a class="xref" href="GrapeCity.Documents.Word.Fields.TocPageNumberOptions.PrefixSequenceId.html#GrapeCity_Documents_Word_Fields_TocPageNumberOptions_PrefixSequenceId">PrefixSequenceId</a> property) and page number in TOC entries.</p>
<p>The default value is <b>'-'</b>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Fields_TocPageNumberOptions_PrefixSequenceId" data-uid="GrapeCity.Documents.Word.Fields.TocPageNumberOptions.PrefixSequenceId">
          <a class="xref" href="GrapeCity.Documents.Word.Fields.TocPageNumberOptions.PrefixSequenceId.html#GrapeCity_Documents_Word_Fields_TocPageNumberOptions_PrefixSequenceId">PrefixSequenceId</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="GrapeCity.Documents.Word.Fields.SeqFieldOptions.Id.html#GrapeCity_Documents_Word_Fields_SeqFieldOptions_Id">Id</a> of SEQ fields whose result should prefix TOC entries page numbers.</p>
<p>The default value is <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string.empty">Empty</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Fields_TocPageNumberOptions_Separator" data-uid="GrapeCity.Documents.Word.Fields.TocPageNumberOptions.Separator">
          <a class="xref" href="GrapeCity.Documents.Word.Fields.TocPageNumberOptions.Separator.html#GrapeCity_Documents_Word_Fields_TocPageNumberOptions_Separator">Separator</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the character that separates a TOC entry and its page number.</p>
<p>The default value is <span class="xref">GrapeCity.Documents.Word.SpecialChars.Tab</span>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Fields_TocPageNumberOptions_ShowPageNumbers" data-uid="GrapeCity.Documents.Word.Fields.TocPageNumberOptions.ShowPageNumbers">
          <a class="xref" href="GrapeCity.Documents.Word.Fields.TocPageNumberOptions.ShowPageNumbers.html#GrapeCity_Documents_Word_Fields_TocPageNumberOptions_ShowPageNumbers">ShowPageNumbers</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether to show page numbers for TOC entries.</p>
<p>The default value is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a>.</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_Fields_TocPageNumberOptions_ToString" data-uid="GrapeCity.Documents.Word.Fields.TocPageNumberOptions.ToString">
          <a class="xref" href="GrapeCity.Documents.Word.Fields.TocPageNumberOptions.ToString.html#GrapeCity_Documents_Word_Fields_TocPageNumberOptions_ToString">ToString()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>

</div>
