# GrapeCity.Documents.Word.Fields.TocTcOptions

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Word_Fields_TocTcOptions" data-uid="GrapeCity.Documents.Word.Fields.TocTcOptions" class="text-break">TocTcOptions Class
</h1>
  <div class="markdown level0 summary"><p>Represents options used to collect TC fields by the TOC field.</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">TocTcOptions</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_TocTcOptions_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class TocTcOptions</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class TocTcOptions</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_TocTcOptions_AllowedLevels" data-uid="GrapeCity.Documents.Word.Fields.TocTcOptions.AllowedLevels">
          <a class="xref" href="GrapeCity.Documents.Word.Fields.TocTcOptions.AllowedLevels.html#GrapeCity_Documents_Word_Fields_TocTcOptions_AllowedLevels">AllowedLevels</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the range of allowed TC field levels.</p>
<p>If a <a class="xref" href="GrapeCity.Documents.Word.Fields.TcFieldOptions.DisplayLevel.html#GrapeCity_Documents_Word_Fields_TcFieldOptions_DisplayLevel">DisplayLevel</a> of a TC field is not in this range, it will not be collected by the TOC field.</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_TocTcOptions_Collect" data-uid="GrapeCity.Documents.Word.Fields.TocTcOptions.Collect">
          <a class="xref" href="GrapeCity.Documents.Word.Fields.TocTcOptions.Collect.html#GrapeCity_Documents_Word_Fields_TocTcOptions_Collect">Collect</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the TOC field should collect TC fields.</p>
<p>The default value is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">false</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_Fields_TocTcOptions_EntriesType" data-uid="GrapeCity.Documents.Word.Fields.TocTcOptions.EntriesType">
          <a class="xref" href="GrapeCity.Documents.Word.Fields.TocTcOptions.EntriesType.html#GrapeCity_Documents_Word_Fields_TocTcOptions_EntriesType">EntriesType</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the type of TC fields to collect.</p>
<p>This property is related to <a class="xref" href="GrapeCity.Documents.Word.Fields.TcFieldOptions.Type.html#GrapeCity_Documents_Word_Fields_TcFieldOptions_Type">Type</a>.</p>
<p>The default value is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</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_TocTcOptions_ToString" data-uid="GrapeCity.Documents.Word.Fields.TocTcOptions.ToString">
          <a class="xref" href="GrapeCity.Documents.Word.Fields.TocTcOptions.ToString.html#GrapeCity_Documents_Word_Fields_TocTcOptions_ToString">ToString()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>

</div>
