# C1.C1Excel.ShapeCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_C1Excel_ShapeCollection" data-uid="C1.C1Excel.ShapeCollection" class="text-break">ShapeCollection Class
</h1>
  <div class="markdown level0 summary"><p>Represents a collection of <a class="xref" href="C1.C1Excel.XLShape.html">XLShape</a> objects on an <a class="xref" href="C1.C1Excel.XLSheet.html">XLSheet</a>.</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">ShapeCollection</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <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="C1.C1Excel.html">C1.C1Excel</a></h6>
  <h6><strong>Assembly</strong>: C1.C1Excel.4.8.dll</h6>
  <h5 id="C1_C1Excel_ShapeCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class ShapeCollection : IEnumerable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class ShapeCollection
    Implements 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="C1_C1Excel_ShapeCollection_Count" data-uid="C1.C1Excel.ShapeCollection.Count">
          <a class="xref" href="C1.C1Excel.ShapeCollection.Count.html#C1_C1Excel_ShapeCollection_Count">Count</a>
        </td>
        <td class="markdown level1 summary"><p>Gets count items in collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Excel_ShapeCollection_Item_System_Int32_" data-uid="C1.C1Excel.ShapeCollection.Item(System.Int32)">
          <a class="xref" href="C1.C1Excel.ShapeCollection.Item.html#C1_C1Excel_ShapeCollection_Item_System_Int32_">this[int]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.C1Excel.XLShape.html">XLShape</a> object at the specified position in the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Excel_ShapeCollection_Sheet" data-uid="C1.C1Excel.ShapeCollection.Sheet">
          <a class="xref" href="C1.C1Excel.ShapeCollection.Sheet.html#C1_C1Excel_ShapeCollection_Sheet">Sheet</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.C1Excel.ShapeCollection.Sheet.html#C1_C1Excel_ShapeCollection_Sheet">Sheet</a> object that owns 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="C1_C1Excel_ShapeCollection_Add_C1_C1Excel_XLShape_" data-uid="C1.C1Excel.ShapeCollection.Add(C1.C1Excel.XLShape)">
          <a class="xref" href="C1.C1Excel.ShapeCollection.Add.html#C1_C1Excel_ShapeCollection_Add_C1_C1Excel_XLShape_">Add(XLShape)</a>
        </td>
        <td class="markdown level1 summary"><p>Appends an <a class="xref" href="C1.C1Excel.XLShape.html">XLShape</a> object to the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Excel_ShapeCollection_Contains_C1_C1Excel_XLShape_" data-uid="C1.C1Excel.ShapeCollection.Contains(C1.C1Excel.XLShape)">
          <a class="xref" href="C1.C1Excel.ShapeCollection.Contains.html#C1_C1Excel_ShapeCollection_Contains_C1_C1Excel_XLShape_">Contains(XLShape)</a>
        </td>
        <td class="markdown level1 summary"><p>Checks whether the collection contains a specific <a class="xref" href="C1.C1Excel.XLShape.html">XLShape</a> object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Excel_ShapeCollection_Contains_System_Int32_" data-uid="C1.C1Excel.ShapeCollection.Contains(System.Int32)">
          <a class="xref" href="C1.C1Excel.ShapeCollection.Contains.html#C1_C1Excel_ShapeCollection_Contains_System_Int32_">Contains(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Checks whether the collection contains a specific <a class="xref" href="C1.C1Excel.XLShape.html">XLShape</a> object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Excel_ShapeCollection_IndexOf_C1_C1Excel_XLShape_" data-uid="C1.C1Excel.ShapeCollection.IndexOf(C1.C1Excel.XLShape)">
          <a class="xref" href="C1.C1Excel.ShapeCollection.IndexOf.html#C1_C1Excel_ShapeCollection_IndexOf_C1_C1Excel_XLShape_">IndexOf(XLShape)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the position of an <a class="xref" href="C1.C1Excel.XLShape.html">XLShape</a> object in the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Excel_ShapeCollection_IndexOf_System_Int32_" data-uid="C1.C1Excel.ShapeCollection.IndexOf(System.Int32)">
          <a class="xref" href="C1.C1Excel.ShapeCollection.IndexOf.html#C1_C1Excel_ShapeCollection_IndexOf_System_Int32_">IndexOf(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the position of an <a class="xref" href="C1.C1Excel.XLShape.html">XLShape</a> object in the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Excel_ShapeCollection_Insert_System_Int32_C1_C1Excel_XLShape_" data-uid="C1.C1Excel.ShapeCollection.Insert(System.Int32,C1.C1Excel.XLShape)">
          <a class="xref" href="C1.C1Excel.ShapeCollection.Insert.html#C1_C1Excel_ShapeCollection_Insert_System_Int32_C1_C1Excel_XLShape_">Insert(int, XLShape)</a>
        </td>
        <td class="markdown level1 summary"><p>Inserts an <a class="xref" href="C1.C1Excel.XLShape.html">XLShape</a> object at a specific position in the
collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Excel_ShapeCollection_Remove_C1_C1Excel_XLShape_" data-uid="C1.C1Excel.ShapeCollection.Remove(C1.C1Excel.XLShape)">
          <a class="xref" href="C1.C1Excel.ShapeCollection.Remove.html#C1_C1Excel_ShapeCollection_Remove_C1_C1Excel_XLShape_">Remove(XLShape)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes an <a class="xref" href="C1.C1Excel.XLShape.html">XLShape</a> object from the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Excel_ShapeCollection_Remove_System_Int32_" data-uid="C1.C1Excel.ShapeCollection.Remove(System.Int32)">
          <a class="xref" href="C1.C1Excel.ShapeCollection.Remove.html#C1_C1Excel_ShapeCollection_Remove_System_Int32_">Remove(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes an <a class="xref" href="C1.C1Excel.XLShape.html">XLShape</a> object from the collection.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
