# C1.C1Word.Canvas.ShapeCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_C1Word_Canvas_ShapeCollection" data-uid="C1.C1Word.Canvas.ShapeCollection" class="text-break">ShapeCollection Class
</h1>
  <div class="markdown level0 summary"><p>Represents a collection of <a class="xref" href="C1.C1Word.Canvas.DrawingShape.html">DrawingShape</a> objects on an <a class="xref" href="C1.C1Word.Canvas.IShapeContainer.html">IShapeContainer</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"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.collection-1">Collection</a>&lt;<a class="xref" href="C1.C1Word.Canvas.DrawingShape.html">DrawingShape</a>&gt;</div>
    <div class="level2"><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.generic.ilist-1">IList</a>&lt;<a class="xref" href="C1.C1Word.Canvas.DrawingShape.html">DrawingShape</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1">ICollection</a>&lt;<a class="xref" href="C1.C1Word.Canvas.DrawingShape.html">DrawingShape</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ilist">IList</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.icollection">ICollection</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlylist-1">IReadOnlyList</a>&lt;<a class="xref" href="C1.C1Word.Canvas.DrawingShape.html">DrawingShape</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="C1.C1Word.Canvas.DrawingShape.html">DrawingShape</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="C1.C1Word.Canvas.DrawingShape.html">DrawingShape</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="C1.C1Word.Canvas.html">C1.C1Word.Canvas</a></h6>
  <h6><strong>Assembly</strong>: C1.C1Word.4.8.dll</h6>
  <h5 id="C1_C1Word_Canvas_ShapeCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class ShapeCollection : Collection&lt;DrawingShape&gt;, IList&lt;DrawingShape&gt;, ICollection&lt;DrawingShape&gt;, IList, ICollection, IReadOnlyList&lt;DrawingShape&gt;, IReadOnlyCollection&lt;DrawingShape&gt;, IEnumerable&lt;DrawingShape&gt;, IEnumerable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class ShapeCollection
    Inherits Collection(Of DrawingShape)
    Implements IList(Of DrawingShape), ICollection(Of DrawingShape), IList, ICollection, IReadOnlyList(Of DrawingShape), IReadOnlyCollection(Of DrawingShape), IEnumerable(Of DrawingShape), 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_C1Word_Canvas_ShapeCollection_Owner" data-uid="C1.C1Word.Canvas.ShapeCollection.Owner">
          <a class="xref" href="C1.C1Word.Canvas.ShapeCollection.Owner.html#C1_C1Word_Canvas_ShapeCollection_Owner">Owner</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.C1Word.Canvas.IShapeContainer.html">IShapeContainer</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_C1Word_Canvas_ShapeCollection_ClearItems" data-uid="C1.C1Word.Canvas.ShapeCollection.ClearItems">
          <a class="xref" href="C1.C1Word.Canvas.ShapeCollection.ClearItems.html#C1_C1Word_Canvas_ShapeCollection_ClearItems">ClearItems()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_C1Word_Canvas_ShapeCollection_Clone_C1_C1Word_Canvas_IShapeContainer_" data-uid="C1.C1Word.Canvas.ShapeCollection.Clone(C1.C1Word.Canvas.IShapeContainer)">
          <a class="xref" href="C1.C1Word.Canvas.ShapeCollection.Clone.html#C1_C1Word_Canvas_ShapeCollection_Clone_C1_C1Word_Canvas_IShapeContainer_">Clone(IShapeContainer)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets clone for this collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Word_Canvas_ShapeCollection_IndexOf_System_Int32_" data-uid="C1.C1Word.Canvas.ShapeCollection.IndexOf(System.Int32)">
          <a class="xref" href="C1.C1Word.Canvas.ShapeCollection.IndexOf.html#C1_C1Word_Canvas_ShapeCollection_IndexOf_System_Int32_">IndexOf(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the position of an <a class="xref" href="C1.C1Word.Canvas.DrawingShape.html">DrawingShape</a> object in the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Word_Canvas_ShapeCollection_InsertItem_System_Int32_C1_C1Word_Canvas_DrawingShape_" data-uid="C1.C1Word.Canvas.ShapeCollection.InsertItem(System.Int32,C1.C1Word.Canvas.DrawingShape)">
          <a class="xref" href="C1.C1Word.Canvas.ShapeCollection.InsertItem.html#C1_C1Word_Canvas_ShapeCollection_InsertItem_System_Int32_C1_C1Word_Canvas_DrawingShape_">InsertItem(int, DrawingShape)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_C1Word_Canvas_ShapeCollection_Remove_System_Int32_" data-uid="C1.C1Word.Canvas.ShapeCollection.Remove(System.Int32)">
          <a class="xref" href="C1.C1Word.Canvas.ShapeCollection.Remove.html#C1_C1Word_Canvas_ShapeCollection_Remove_System_Int32_">Remove(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes an <a class="xref" href="C1.C1Word.Canvas.DrawingShape.html">DrawingShape</a> object from the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Word_Canvas_ShapeCollection_RemoveItem_System_Int32_" data-uid="C1.C1Word.Canvas.ShapeCollection.RemoveItem(System.Int32)">
          <a class="xref" href="C1.C1Word.Canvas.ShapeCollection.RemoveItem.html#C1_C1Word_Canvas_ShapeCollection_RemoveItem_System_Int32_">RemoveItem(int)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_C1Word_Canvas_ShapeCollection_SetItem_System_Int32_C1_C1Word_Canvas_DrawingShape_" data-uid="C1.C1Word.Canvas.ShapeCollection.SetItem(System.Int32,C1.C1Word.Canvas.DrawingShape)">
          <a class="xref" href="C1.C1Word.Canvas.ShapeCollection.SetItem.html#C1_C1Word_Canvas_ShapeCollection_SetItem_System_Int32_C1_C1Word_Canvas_DrawingShape_">SetItem(int, DrawingShape)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>

</div>
