# GrapeCity.Documents.Word.Fields.TocStyleLevel.Collect

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Word_Fields_TocStyleLevel_Collect_" data-uid="GrapeCity.Documents.Word.Fields.TocStyleLevel.Collect*">Collect Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Word_Fields_TocStyleLevel_Collect_" data-uid="GrapeCity.Documents.Word.Fields.TocStyleLevel.Collect*"></a>
<h4 id="GrapeCity_Documents_Word_Fields_TocStyleLevel_Collect" data-uid="GrapeCity.Documents.Word.Fields.TocStyleLevel.Collect">Collect</h4>
<div class="markdown level1 summary"><p>Gets or sets a value indicating whether to collect paragraphs formatted with the style.</p>
<p>The default value is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a>.</p> 
<p>Note that for "Heading 1" built-in style, if both <a class="xref" href="GrapeCity.Documents.Word.Fields.TocTcOptions.Collect.html#GrapeCity_Documents_Word_Fields_TocTcOptions_Collect">Collect</a> and <a class="xref" href="GrapeCity.Documents.Word.Fields.TocSeqOptions.Collect.html#GrapeCity_Documents_Word_Fields_TocSeqOptions_Collect">Collect</a> are <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">false</a>,
and all other styles are not marked for collection, then this property returns <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a> regardless of the assigned value.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool Collect { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property Collect As Boolean</code></pre>
</div>
</div>
