# GrapeCity.Documents.Word.BuildingBlockCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Word_BuildingBlockCollection" data-uid="GrapeCity.Documents.Word.BuildingBlockCollection" class="text-break">BuildingBlockCollection Class
</h1>
  <div class="markdown level0 summary"><p>Represents a collection of building blocks.</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">BuildingBlockCollection</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="GrapeCity.Documents.Word.IContentList-1.html">IContentList</a>&lt;<a class="xref" href="GrapeCity.Documents.Word.BuildingBlock.html">BuildingBlock</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlylist-1">IReadOnlyList</a>&lt;<a class="xref" href="GrapeCity.Documents.Word.BuildingBlock.html">BuildingBlock</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlycollection-1">IReadOnlyCollection</a>&lt;<a class="xref" href="GrapeCity.Documents.Word.BuildingBlock.html">BuildingBlock</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="GrapeCity.Documents.Word.BuildingBlock.html">BuildingBlock</a>&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_BuildingBlockCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class BuildingBlockCollection : IContentList&lt;BuildingBlock&gt;, IReadOnlyList&lt;BuildingBlock&gt;, IReadOnlyCollection&lt;BuildingBlock&gt;, IEnumerable&lt;BuildingBlock&gt;, IEnumerable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class BuildingBlockCollection
    Implements IContentList(Of BuildingBlock), IReadOnlyList(Of BuildingBlock), IReadOnlyCollection(Of BuildingBlock), IEnumerable(Of BuildingBlock), IEnumerable</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_BuildingBlockCollection_Count" data-uid="GrapeCity.Documents.Word.BuildingBlockCollection.Count">
          <a class="xref" href="GrapeCity.Documents.Word.BuildingBlockCollection.Count.html#GrapeCity_Documents_Word_BuildingBlockCollection_Count">Count</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the number of building blocks in the collection.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_BuildingBlockCollection_First" data-uid="GrapeCity.Documents.Word.BuildingBlockCollection.First">
          <a class="xref" href="GrapeCity.Documents.Word.BuildingBlockCollection.First.html#GrapeCity_Documents_Word_BuildingBlockCollection_First">First</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the first buildin block in the collection.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_BuildingBlockCollection_Item_System_Int32_" data-uid="GrapeCity.Documents.Word.BuildingBlockCollection.Item(System.Int32)">
          <a class="xref" href="GrapeCity.Documents.Word.BuildingBlockCollection.Item.html#GrapeCity_Documents_Word_BuildingBlockCollection_Item_System_Int32_">this[int]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the building block at the specified index in the collection.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_BuildingBlockCollection_Last" data-uid="GrapeCity.Documents.Word.BuildingBlockCollection.Last">
          <a class="xref" href="GrapeCity.Documents.Word.BuildingBlockCollection.Last.html#GrapeCity_Documents_Word_BuildingBlockCollection_Last">Last</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the last building block in the collection.</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_BuildingBlockCollection_Add_System_String_System_String_GrapeCity_Documents_Word_BuildingBlockGallery_GrapeCity_Documents_Word_BuildingBlockInsertOptions_GrapeCity_Documents_Word_BuildingBlockType_" data-uid="GrapeCity.Documents.Word.BuildingBlockCollection.Add(System.String,System.String,GrapeCity.Documents.Word.BuildingBlockGallery,GrapeCity.Documents.Word.BuildingBlockInsertOptions,GrapeCity.Documents.Word.BuildingBlockType)">
          <a class="xref" href="GrapeCity.Documents.Word.BuildingBlockCollection.Add.html#GrapeCity_Documents_Word_BuildingBlockCollection_Add_System_String_System_String_GrapeCity_Documents_Word_BuildingBlockGallery_GrapeCity_Documents_Word_BuildingBlockInsertOptions_GrapeCity_Documents_Word_BuildingBlockType_">Add(string, string, BuildingBlockGallery, BuildingBlockInsertOptions, BuildingBlockType)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a new building block into the collection.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Word_BuildingBlockCollection_GetEnumerator" data-uid="GrapeCity.Documents.Word.BuildingBlockCollection.GetEnumerator">
          <a class="xref" href="GrapeCity.Documents.Word.BuildingBlockCollection.GetEnumerator.html#GrapeCity_Documents_Word_BuildingBlockCollection_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_BuildingBlockCollection_Remove_GrapeCity_Documents_Word_BuildingBlock_" data-uid="GrapeCity.Documents.Word.BuildingBlockCollection.Remove(GrapeCity.Documents.Word.BuildingBlock)">
          <a class="xref" href="GrapeCity.Documents.Word.BuildingBlockCollection.Remove.html#GrapeCity_Documents_Word_BuildingBlockCollection_Remove_GrapeCity_Documents_Word_BuildingBlock_">Remove(BuildingBlock)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes the specified building block from the collection.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
