# GrapeCity.Documents.Svg.SvgElementCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Svg_SvgElementCollection" data-uid="GrapeCity.Documents.Svg.SvgElementCollection" class="text-break">SvgElementCollection Class
</h1>
  <div class="markdown level0 summary"><p>Represents a collection of elements derived from <a class="xref" href="GrapeCity.Documents.Svg.SvgElement.html">SvgElement</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">SvgElementCollection</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="GrapeCity.Documents.Svg.SvgElement.html">SvgElement</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="GrapeCity.Documents.Svg.SvgElement.html">SvgElement</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.Svg.SvgElement.html">SvgElement</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.Svg.html">GrapeCity.Documents.Svg</a></h6>
  <h6><strong>Assembly</strong>: DS.Documents.Imaging.dll</h6>
  <h5 id="GrapeCity_Documents_Svg_SvgElementCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class SvgElementCollection : IList&lt;SvgElement&gt;, ICollection&lt;SvgElement&gt;, IEnumerable&lt;SvgElement&gt;, IEnumerable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class SvgElementCollection
    Implements IList(Of SvgElement), ICollection(Of SvgElement), IEnumerable(Of SvgElement), 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_Svg_SvgElementCollection_Capacity" data-uid="GrapeCity.Documents.Svg.SvgElementCollection.Capacity">
          <a class="xref" href="GrapeCity.Documents.Svg.SvgElementCollection.Capacity.html#GrapeCity_Documents_Svg_SvgElementCollection_Capacity">Capacity</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the total number of elements the internal data structure can hold without resizing.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Svg_SvgElementCollection_Count" data-uid="GrapeCity.Documents.Svg.SvgElementCollection.Count">
          <a class="xref" href="GrapeCity.Documents.Svg.SvgElementCollection.Count.html#GrapeCity_Documents_Svg_SvgElementCollection_Count">Count</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the number of elements contained in the <a class="xref" href="GrapeCity.Documents.Svg.SvgElementCollection.html">SvgElementCollection</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Svg_SvgElementCollection_Item_System_Int32_" data-uid="GrapeCity.Documents.Svg.SvgElementCollection.Item(System.Int32)">
          <a class="xref" href="GrapeCity.Documents.Svg.SvgElementCollection.Item.html#GrapeCity_Documents_Svg_SvgElementCollection_Item_System_Int32_">this[int]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the element at the specified index.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Svg_SvgElementCollection_Owner" data-uid="GrapeCity.Documents.Svg.SvgElementCollection.Owner">
          <a class="xref" href="GrapeCity.Documents.Svg.SvgElementCollection.Owner.html#GrapeCity_Documents_Svg_SvgElementCollection_Owner">Owner</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the owner <a class="xref" href="GrapeCity.Documents.Svg.SvgElement.html">SvgElement</a>.</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_Svg_SvgElementCollection_Add_GrapeCity_Documents_Svg_SvgElement_" data-uid="GrapeCity.Documents.Svg.SvgElementCollection.Add(GrapeCity.Documents.Svg.SvgElement)">
          <a class="xref" href="GrapeCity.Documents.Svg.SvgElementCollection.Add.html#GrapeCity_Documents_Svg_SvgElementCollection_Add_GrapeCity_Documents_Svg_SvgElement_">Add(SvgElement)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds the specified <code class="paramref">element</code> to the end of the <a class="xref" href="GrapeCity.Documents.Svg.SvgElementCollection.html">SvgElementCollection</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Svg_SvgElementCollection_AddRange_GrapeCity_Documents_Svg_SvgElement___" data-uid="GrapeCity.Documents.Svg.SvgElementCollection.AddRange(GrapeCity.Documents.Svg.SvgElement[])">
          <a class="xref" href="GrapeCity.Documents.Svg.SvgElementCollection.AddRange.html#GrapeCity_Documents_Svg_SvgElementCollection_AddRange_GrapeCity_Documents_Svg_SvgElement___">AddRange(params SvgElement[])</a>
        </td>
        <td class="markdown level1 summary"><p>Adds the elements to the end of the <a class="xref" href="GrapeCity.Documents.Svg.SvgElementCollection.html">SvgElementCollection</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Svg_SvgElementCollection_AddRange_System_Collections_Generic_IEnumerable_GrapeCity_Documents_Svg_SvgElement__" data-uid="GrapeCity.Documents.Svg.SvgElementCollection.AddRange(System.Collections.Generic.IEnumerable{GrapeCity.Documents.Svg.SvgElement})">
          <a class="xref" href="GrapeCity.Documents.Svg.SvgElementCollection.AddRange.html#GrapeCity_Documents_Svg_SvgElementCollection_AddRange_System_Collections_Generic_IEnumerable_GrapeCity_Documents_Svg_SvgElement__">AddRange(IEnumerable&lt;SvgElement&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds the elements of the specified <code class="paramref">collection</code> to the end of the <a class="xref" href="GrapeCity.Documents.Svg.SvgElementCollection.html">SvgElementCollection</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Svg_SvgElementCollection_Clear" data-uid="GrapeCity.Documents.Svg.SvgElementCollection.Clear">
          <a class="xref" href="GrapeCity.Documents.Svg.SvgElementCollection.Clear.html#GrapeCity_Documents_Svg_SvgElementCollection_Clear">Clear()</a>
        </td>
        <td class="markdown level1 summary"><p>Removes all elements from the <a class="xref" href="GrapeCity.Documents.Svg.SvgElementCollection.html">SvgElementCollection</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Svg_SvgElementCollection_Contains_GrapeCity_Documents_Svg_SvgElement_" data-uid="GrapeCity.Documents.Svg.SvgElementCollection.Contains(GrapeCity.Documents.Svg.SvgElement)">
          <a class="xref" href="GrapeCity.Documents.Svg.SvgElementCollection.Contains.html#GrapeCity_Documents_Svg_SvgElementCollection_Contains_GrapeCity_Documents_Svg_SvgElement_">Contains(SvgElement)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether an element is in the <a class="xref" href="GrapeCity.Documents.Svg.SvgElementCollection.html">SvgElementCollection</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Svg_SvgElementCollection_CopyTo_GrapeCity_Documents_Svg_SvgElement___System_Int32_" data-uid="GrapeCity.Documents.Svg.SvgElementCollection.CopyTo(GrapeCity.Documents.Svg.SvgElement[],System.Int32)">
          <a class="xref" href="GrapeCity.Documents.Svg.SvgElementCollection.CopyTo.html#GrapeCity_Documents_Svg_SvgElementCollection_CopyTo_GrapeCity_Documents_Svg_SvgElement___System_Int32_">CopyTo(SvgElement[], int)</a>
        </td>
        <td class="markdown level1 summary"><p>Copies the entire <a class="xref" href="GrapeCity.Documents.Svg.SvgElementCollection.html">SvgElementCollection</a> to a compatible one-dimensional array, starting at the specified index of the target array.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Svg_SvgElementCollection_EnsureCapacity_System_Int32_" data-uid="GrapeCity.Documents.Svg.SvgElementCollection.EnsureCapacity(System.Int32)">
          <a class="xref" href="GrapeCity.Documents.Svg.SvgElementCollection.EnsureCapacity.html#GrapeCity_Documents_Svg_SvgElementCollection_EnsureCapacity_System_Int32_">EnsureCapacity(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Ensures that the capacity of this collection is at least the specified <code class="paramref">capacity</code>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Svg_SvgElementCollection_GetEnumerator" data-uid="GrapeCity.Documents.Svg.SvgElementCollection.GetEnumerator">
          <a class="xref" href="GrapeCity.Documents.Svg.SvgElementCollection.GetEnumerator.html#GrapeCity_Documents_Svg_SvgElementCollection_GetEnumerator">GetEnumerator()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns an enumerator that iterates through the <a class="xref" href="GrapeCity.Documents.Svg.SvgElementCollection.html">SvgElementCollection</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Svg_SvgElementCollection_IndexOf_GrapeCity_Documents_Svg_SvgElement_" data-uid="GrapeCity.Documents.Svg.SvgElementCollection.IndexOf(GrapeCity.Documents.Svg.SvgElement)">
          <a class="xref" href="GrapeCity.Documents.Svg.SvgElementCollection.IndexOf.html#GrapeCity_Documents_Svg_SvgElementCollection_IndexOf_GrapeCity_Documents_Svg_SvgElement_">IndexOf(SvgElement)</a>
        </td>
        <td class="markdown level1 summary"><p>Searches for the specified element and returns the zero-based index.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Svg_SvgElementCollection_Insert_System_Int32_GrapeCity_Documents_Svg_SvgElement_" data-uid="GrapeCity.Documents.Svg.SvgElementCollection.Insert(System.Int32,GrapeCity.Documents.Svg.SvgElement)">
          <a class="xref" href="GrapeCity.Documents.Svg.SvgElementCollection.Insert.html#GrapeCity_Documents_Svg_SvgElementCollection_Insert_System_Int32_GrapeCity_Documents_Svg_SvgElement_">Insert(int, SvgElement)</a>
        </td>
        <td class="markdown level1 summary"><p>Inserts an element into the <a class="xref" href="GrapeCity.Documents.Svg.SvgElementCollection.html">SvgElementCollection</a> at the specified index.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Svg_SvgElementCollection_Move_System_Int32_System_Int32_" data-uid="GrapeCity.Documents.Svg.SvgElementCollection.Move(System.Int32,System.Int32)">
          <a class="xref" href="GrapeCity.Documents.Svg.SvgElementCollection.Move.html#GrapeCity_Documents_Svg_SvgElementCollection_Move_System_Int32_System_Int32_">Move(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Moves the element at the <code class="paramref">fromIndex</code> to the position of the <code class="paramref">toIndex</code>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Svg_SvgElementCollection_Remove_GrapeCity_Documents_Svg_SvgElement_" data-uid="GrapeCity.Documents.Svg.SvgElementCollection.Remove(GrapeCity.Documents.Svg.SvgElement)">
          <a class="xref" href="GrapeCity.Documents.Svg.SvgElementCollection.Remove.html#GrapeCity_Documents_Svg_SvgElementCollection_Remove_GrapeCity_Documents_Svg_SvgElement_">Remove(SvgElement)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes the specific element from the <a class="xref" href="GrapeCity.Documents.Svg.SvgElementCollection.html">SvgElementCollection</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Svg_SvgElementCollection_RemoveAt_System_Int32_" data-uid="GrapeCity.Documents.Svg.SvgElementCollection.RemoveAt(System.Int32)">
          <a class="xref" href="GrapeCity.Documents.Svg.SvgElementCollection.RemoveAt.html#GrapeCity_Documents_Svg_SvgElementCollection_RemoveAt_System_Int32_">RemoveAt(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes the element at the specified index of the <a class="xref" href="GrapeCity.Documents.Svg.SvgElementCollection.html">SvgElementCollection</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Svg_SvgElementCollection_RemoveRange_System_Int32_System_Int32_" data-uid="GrapeCity.Documents.Svg.SvgElementCollection.RemoveRange(System.Int32,System.Int32)">
          <a class="xref" href="GrapeCity.Documents.Svg.SvgElementCollection.RemoveRange.html#GrapeCity_Documents_Svg_SvgElementCollection_RemoveRange_System_Int32_System_Int32_">RemoveRange(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes a range of elements from the <a class="xref" href="GrapeCity.Documents.Svg.SvgElementCollection.html">SvgElementCollection</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Svg_SvgElementCollection_Swap_System_Int32_System_Int32_" data-uid="GrapeCity.Documents.Svg.SvgElementCollection.Swap(System.Int32,System.Int32)">
          <a class="xref" href="GrapeCity.Documents.Svg.SvgElementCollection.Swap.html#GrapeCity_Documents_Svg_SvgElementCollection_Swap_System_Int32_System_Int32_">Swap(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Swaps two elements at the <code class="paramref">index1</code> and <code class="paramref">index2</code>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Documents_Svg_SvgElementCollection_TrimExcess" data-uid="GrapeCity.Documents.Svg.SvgElementCollection.TrimExcess">
          <a class="xref" href="GrapeCity.Documents.Svg.SvgElementCollection.TrimExcess.html#GrapeCity_Documents_Svg_SvgElementCollection_TrimExcess">TrimExcess()</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the capacity to the actual number of elements in the <a class="xref" href="GrapeCity.Documents.Svg.SvgElementCollection.html">SvgElementCollection</a>.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
