# C1.Win.Tile.TileCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_Tile_TileCollection" data-uid="C1.Win.Tile.TileCollection" class="text-break">TileCollection Class
</h1>
  <div class="markdown level0 summary"><p>Represents a collection of tiles.</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.Win.Tile.Tile.html">Tile</a>&gt;</div>
    <div class="level2"><span class="xref">TileCollection</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.Win.Tile.Tile.html">Tile</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.Win.Tile.Tile.html">Tile</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.Win.Tile.Tile.html">Tile</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.Win.Tile.Tile.html">Tile</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.Win.Tile.Tile.html">Tile</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.Win.Tile.html">C1.Win.Tile</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.TileControl.10.dll</h6>
  <h5 id="C1_Win_Tile_TileCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class TileCollection : Collection&lt;Tile&gt;, IList&lt;Tile&gt;, ICollection&lt;Tile&gt;, IList, ICollection, IReadOnlyList&lt;Tile&gt;, IReadOnlyCollection&lt;Tile&gt;, IEnumerable&lt;Tile&gt;, IEnumerable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class TileCollection
    Inherits Collection(Of Tile)
    Implements IList(Of Tile), ICollection(Of Tile), IList, ICollection, IReadOnlyList(Of Tile), IReadOnlyCollection(Of Tile), IEnumerable(Of Tile), 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_Win_Tile_TileCollection_Item_System_String_" data-uid="C1.Win.Tile.TileCollection.Item(System.String)">
          <a class="xref" href="C1.Win.Tile.TileCollection.Item.html#C1_Win_Tile_TileCollection_Item_System_String_">this[string]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the first <a class="xref" href="C1.Win.Tile.Tile.html">Tile</a> with the specified name 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="C1_Win_Tile_TileCollection_Clear_System_Boolean_" data-uid="C1.Win.Tile.TileCollection.Clear(System.Boolean)">
          <a class="xref" href="C1.Win.Tile.TileCollection.Clear.html#C1_Win_Tile_TileCollection_Clear_System_Boolean_">Clear(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes all tiles from the collection, then disposes the tiles.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Tile_TileCollection_ClearItems" data-uid="C1.Win.Tile.TileCollection.ClearItems">
          <a class="xref" href="C1.Win.Tile.TileCollection.ClearItems.html#C1_Win_Tile_TileCollection_ClearItems">ClearItems()</a>
        </td>
        <td class="markdown level1 summary"><p>Removes all items from the <a class="xref" href="C1.Win.Tile.TileCollection.html">TileCollection</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Tile_TileCollection_Contains_System_String_" data-uid="C1.Win.Tile.TileCollection.Contains(System.String)">
          <a class="xref" href="C1.Win.Tile.TileCollection.Contains.html#C1_Win_Tile_TileCollection_Contains_System_String_">Contains(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether this collection contains a <a class="xref" href="C1.Win.Tile.Tile.html">Tile</a> with the specified name.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Tile_TileCollection_IndexOf_System_String_" data-uid="C1.Win.Tile.TileCollection.IndexOf(System.String)">
          <a class="xref" href="C1.Win.Tile.TileCollection.IndexOf.html#C1_Win_Tile_TileCollection_IndexOf_System_String_">IndexOf(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines index of the first <a class="xref" href="C1.Win.Tile.Tile.html">Tile</a> with the specified name in the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Tile_TileCollection_InsertItem_System_Int32_C1_Win_Tile_Tile_" data-uid="C1.Win.Tile.TileCollection.InsertItem(System.Int32,C1.Win.Tile.Tile)">
          <a class="xref" href="C1.Win.Tile.TileCollection.InsertItem.html#C1_Win_Tile_TileCollection_InsertItem_System_Int32_C1_Win_Tile_Tile_">InsertItem(int, Tile)</a>
        </td>
        <td class="markdown level1 summary"><p>Inserts a <a class="xref" href="C1.Win.Tile.Tile.html">Tile</a> into the <a class="xref" href="C1.Win.Tile.TileCollection.html">TileCollection</a> at the specified index.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Tile_TileCollection_Remove_System_String_" data-uid="C1.Win.Tile.TileCollection.Remove(System.String)">
          <a class="xref" href="C1.Win.Tile.TileCollection.Remove.html#C1_Win_Tile_TileCollection_Remove_System_String_">Remove(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes the first occurrence of the <a class="xref" href="C1.Win.Tile.Tile.html">Tile</a> with the specified name from the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Tile_TileCollection_RemoveItem_System_Int32_" data-uid="C1.Win.Tile.TileCollection.RemoveItem(System.Int32)">
          <a class="xref" href="C1.Win.Tile.TileCollection.RemoveItem.html#C1_Win_Tile_TileCollection_RemoveItem_System_Int32_">RemoveItem(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes the item at the specified index of the <a class="xref" href="C1.Win.Tile.TileCollection.html">TileCollection</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Tile_TileCollection_SetItem_System_Int32_C1_Win_Tile_Tile_" data-uid="C1.Win.Tile.TileCollection.SetItem(System.Int32,C1.Win.Tile.Tile)">
          <a class="xref" href="C1.Win.Tile.TileCollection.SetItem.html#C1_Win_Tile_TileCollection_SetItem_System_Int32_C1_Win_Tile_Tile_">SetItem(int, Tile)</a>
        </td>
        <td class="markdown level1 summary"><p>Replaces the <a class="xref" href="C1.Win.Tile.Tile.html">Tile</a> at the specified index.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
