# C1.Framework.IconSet

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Framework_IconSet" data-uid="C1.Framework.IconSet" class="text-break">IconSet Class
</h1>
  <div class="markdown level0 summary"><p>Represents the set of icons of different sizes to use in a single UI element.</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.Framework.C1Icon.html">C1Icon</a>&gt;</div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.objectmodel.keyedcollection-2">KeyedCollection</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.size">Size</a>, <a class="xref" href="C1.Framework.C1Icon.html">C1Icon</a>&gt;</div>
    <div class="level3"><span class="xref">IconSet</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.Framework.C1Icon.html">C1Icon</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.Framework.C1Icon.html">C1Icon</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.Framework.C1Icon.html">C1Icon</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.Framework.C1Icon.html">C1Icon</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.Framework.C1Icon.html">C1Icon</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ienumerable">IEnumerable</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.specialized.inotifycollectionchanged">INotifyCollectionChanged</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.icloneable">ICloneable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Framework.html">C1.Framework</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.10.dll</h6>
  <h5 id="C1_Framework_IconSet_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class IconSet : KeyedCollection&lt;Size, C1Icon&gt;, IList&lt;C1Icon&gt;, ICollection&lt;C1Icon&gt;, IList, ICollection, IReadOnlyList&lt;C1Icon&gt;, IReadOnlyCollection&lt;C1Icon&gt;, IEnumerable&lt;C1Icon&gt;, IEnumerable, INotifyCollectionChanged, ICloneable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class IconSet
    Inherits KeyedCollection(Of Size, C1Icon)
    Implements IList(Of C1Icon), ICollection(Of C1Icon), IList, ICollection, IReadOnlyList(Of C1Icon), IReadOnlyCollection(Of C1Icon), IEnumerable(Of C1Icon), IEnumerable, INotifyCollectionChanged, ICloneable</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Framework_IconSet__ctor" data-uid="C1.Framework.IconSet.#ctor">
          <a class="xref" href="C1.Framework.IconSet.-ctor.html#C1_Framework_IconSet__ctor">IconSet()</a>
        </td>
        <td class="markdown level1 summary"></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_Framework_IconSet_ClearItems" data-uid="C1.Framework.IconSet.ClearItems">
          <a class="xref" href="C1.Framework.IconSet.ClearItems.html#C1_Framework_IconSet_ClearItems">ClearItems()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Framework_IconSet_Clone" data-uid="C1.Framework.IconSet.Clone">
          <a class="xref" href="C1.Framework.IconSet.Clone.html#C1_Framework_IconSet_Clone">Clone()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new object that is a deep copy of the current instance.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_IconSet_Equals_System_Object_" data-uid="C1.Framework.IconSet.Equals(System.Object)">
          <a class="xref" href="C1.Framework.IconSet.Equals.html#C1_Framework_IconSet_Equals_System_Object_">Equals(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Indicates whether the specified object is a <a class="xref" href="C1.Framework.IconSet.html">IconSet</a> and contains the same
set of icons as this icon set.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_IconSet_GetHashCode" data-uid="C1.Framework.IconSet.GetHashCode">
          <a class="xref" href="C1.Framework.IconSet.GetHashCode.html#C1_Framework_IconSet_GetHashCode">GetHashCode()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Framework_IconSet_GetKeyForItem_C1_Framework_C1Icon_" data-uid="C1.Framework.IconSet.GetKeyForItem(C1.Framework.C1Icon)">
          <a class="xref" href="C1.Framework.IconSet.GetKeyForItem.html#C1_Framework_IconSet_GetKeyForItem_C1_Framework_C1Icon_">GetKeyForItem(C1Icon)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Framework_IconSet_GetNextAvailableIcon_System_Drawing_Size_" data-uid="C1.Framework.IconSet.GetNextAvailableIcon(System.Drawing.Size)">
          <a class="xref" href="C1.Framework.IconSet.GetNextAvailableIcon.html#C1_Framework_IconSet_GetNextAvailableIcon_System_Drawing_Size_">GetNextAvailableIcon(Size)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the next available icon of the requested size. If the icon of requested size is available in the icon set, it will be returned.
Otherwise, the icon of the next bigger size will be returned (or the biggest one icon of requested size is too big).</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_IconSet_InsertItem_System_Int32_C1_Framework_C1Icon_" data-uid="C1.Framework.IconSet.InsertItem(System.Int32,C1.Framework.C1Icon)">
          <a class="xref" href="C1.Framework.IconSet.InsertItem.html#C1_Framework_IconSet_InsertItem_System_Int32_C1_Framework_C1Icon_">InsertItem(int, C1Icon)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Framework_IconSet_OnCollectionChanged_System_Collections_Specialized_NotifyCollectionChangedAction_System_Int32_C1_Framework_C1Icon_" data-uid="C1.Framework.IconSet.OnCollectionChanged(System.Collections.Specialized.NotifyCollectionChangedAction,System.Int32,C1.Framework.C1Icon)">
          <a class="xref" href="C1.Framework.IconSet.OnCollectionChanged.html#C1_Framework_IconSet_OnCollectionChanged_System_Collections_Specialized_NotifyCollectionChangedAction_System_Int32_C1_Framework_C1Icon_">OnCollectionChanged(NotifyCollectionChangedAction, int, C1Icon)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <a class="xref" href="C1.Framework.IconSet.CollectionChanged.html">CollectionChanged</a> event with the specified action, index, and item.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_IconSet_ReadXml_System_Xml_XmlNode_" data-uid="C1.Framework.IconSet.ReadXml(System.Xml.XmlNode)">
          <a class="xref" href="C1.Framework.IconSet.ReadXml.html#C1_Framework_IconSet_ReadXml_System_Xml_XmlNode_">ReadXml(XmlNode)</a>
        </td>
        <td class="markdown level1 summary"><p>Reads this <a class="xref" href="C1.Framework.IconSet.html">IconSet</a> from an <span class="xref">System.Xml.XmlReader</span>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_IconSet_RemoveItem_System_Int32_" data-uid="C1.Framework.IconSet.RemoveItem(System.Int32)">
          <a class="xref" href="C1.Framework.IconSet.RemoveItem.html#C1_Framework_IconSet_RemoveItem_System_Int32_">RemoveItem(int)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Framework_IconSet_WriteXml_System_Xml_XmlWriter_System_String_" data-uid="C1.Framework.IconSet.WriteXml(System.Xml.XmlWriter,System.String)">
          <a class="xref" href="C1.Framework.IconSet.WriteXml.html#C1_Framework_IconSet_WriteXml_System_Xml_XmlWriter_System_String_">WriteXml(XmlWriter, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Writes this <a class="xref" href="C1.Framework.IconSet.html">IconSet</a> into an <span class="xref">System.Xml.XmlWriter</span>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="events">Events
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Framework_IconSet_CollectionChanged" data-uid="C1.Framework.IconSet.CollectionChanged">
          <a class="xref" href="C1.Framework.IconSet.CollectionChanged.html">CollectionChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the collection changes.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
