# GrapeCity.Documents.Word.ContentCollection-1

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Word_ContentCollection_1" data-uid="GrapeCity.Documents.Word.ContentCollection`1" class="text-break">ContentCollection&lt;T&gt; Class
</h1>
  <div class="markdown level0 summary"><p>Represents a collection of content items.</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">ContentCollection&lt;T&gt;</span></div>
      <div class="level2"><a class="xref" href="GrapeCity.Documents.Word.ContentObjectCollection-1.html">ContentObjectCollection&lt;T&gt;</a></div>
      <div class="level2"><a class="xref" href="GrapeCity.Documents.Word.ContentRangeCollection-1.html">ContentRangeCollection&lt;T&gt;</a></div>
      <div class="level2"><a class="xref" href="GrapeCity.Documents.Word.SectionCollection.html">SectionCollection</a></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="GrapeCity.Documents.Word.IContentList-1.html">IContentList</a>&lt;T&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlylist-1">IReadOnlyList</a>&lt;T&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlycollection-1">IReadOnlyCollection</a>&lt;T&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;T&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ienumerable">IEnumerable</a></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_ContentCollection_1_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public abstract class ContentCollection&lt;T&gt; : IContentList&lt;T&gt;, IReadOnlyList&lt;T&gt;, IReadOnlyCollection&lt;T&gt;, IEnumerable&lt;T&gt;, IEnumerable where T : class</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public MustInherit Class ContentCollection(Of T As Class)
    Implements IContentList(Of T), IReadOnlyList(Of T), IReadOnlyCollection(Of T), IEnumerable(Of T), IEnumerable</code></pre>
  </div>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">T</span></td>
        <td><p>The type of items in a collection.</p>
</td>
      </tr>
    </tbody>
  </table>
  <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_ContentCollection_1_Count" data-uid="GrapeCity.Documents.Word.ContentCollection`1.Count">
          <a class="xref" href="GrapeCity.Documents.Word.ContentCollection-1.Count.html#GrapeCity_Documents_Word_ContentCollection_1_Count">Count</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the number of content items in the collection.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_ContentCollection_1_First" data-uid="GrapeCity.Documents.Word.ContentCollection`1.First">
          <a class="xref" href="GrapeCity.Documents.Word.ContentCollection-1.First.html#GrapeCity_Documents_Word_ContentCollection_1_First">First</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the first item in the collection.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_ContentCollection_1_Item_System_Int32_" data-uid="GrapeCity.Documents.Word.ContentCollection`1.Item(System.Int32)">
          <a class="xref" href="GrapeCity.Documents.Word.ContentCollection-1.Item.html#GrapeCity_Documents_Word_ContentCollection_1_Item_System_Int32_">this[int]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the item at the specified index in the collection.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_ContentCollection_1_Last" data-uid="GrapeCity.Documents.Word.ContentCollection`1.Last">
          <a class="xref" href="GrapeCity.Documents.Word.ContentCollection-1.Last.html#GrapeCity_Documents_Word_ContentCollection_1_Last">Last</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the last item in the collection.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_ContentCollection_1_Range" data-uid="GrapeCity.Documents.Word.ContentCollection`1.Range">
          <a class="xref" href="GrapeCity.Documents.Word.ContentCollection-1.Range.html#GrapeCity_Documents_Word_ContentCollection_1_Range">Range</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the body range where content items are located.</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_ContentCollection_1_DebugPrint" data-uid="GrapeCity.Documents.Word.ContentCollection`1.DebugPrint">
          <a class="xref" href="GrapeCity.Documents.Word.ContentCollection-1.DebugPrint.html#GrapeCity_Documents_Word_ContentCollection_1_DebugPrint">DebugPrint()</a>
        </td>
        <td class="markdown level1 summary"><p>Prints debug info of the collection into console.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_ContentCollection_1_GetEnumerator" data-uid="GrapeCity.Documents.Word.ContentCollection`1.GetEnumerator">
          <a class="xref" href="GrapeCity.Documents.Word.ContentCollection-1.GetEnumerator.html#GrapeCity_Documents_Word_ContentCollection_1_GetEnumerator">GetEnumerator()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns an enumerator that iterates through the collection.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_ContentCollection_1_Print" data-uid="GrapeCity.Documents.Word.ContentCollection`1.Print">
          <a class="xref" href="GrapeCity.Documents.Word.ContentCollection-1.Print.html#GrapeCity_Documents_Word_ContentCollection_1_Print">Print()</a>
        </td>
        <td class="markdown level1 summary"><p>Prints debug info of the collection into the string.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
