# C1.WPF.Input.ComboBoxSelection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_Input_ComboBoxSelection" data-uid="C1.WPF.Input.ComboBoxSelection" class="text-break">ComboBoxSelection Class
</h1>
  <div class="markdown level0 summary"><p>Represents the selection of a <a class="xref" href="C1.WPF.Input.C1ComboBox.html">C1ComboBox</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">ComboBoxSelection</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.WPF.Input.ComboBoxItem.html">ComboBoxItem</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.WPF.Input.ComboBoxItem.html">ComboBoxItem</a>&gt;</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.WPF.Input.ComboBoxItem.html">ComboBoxItem</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.WPF.Input.ComboBoxItem.html">ComboBoxItem</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.WPF.Input.ComboBoxItem.html">ComboBoxItem</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>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.Input.html">C1.WPF.Input</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.Input.dll</h6>
  <h5 id="C1_WPF_Input_ComboBoxSelection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class ComboBoxSelection : IList&lt;ComboBoxItem&gt;, ICollection&lt;ComboBoxItem&gt;, IReadOnlyList&lt;ComboBoxItem&gt;, IReadOnlyCollection&lt;ComboBoxItem&gt;, IEnumerable&lt;ComboBoxItem&gt;, IEnumerable, INotifyCollectionChanged</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class ComboBoxSelection
    Implements IList(Of ComboBoxItem), ICollection(Of ComboBoxItem), IReadOnlyList(Of ComboBoxItem), IReadOnlyCollection(Of ComboBoxItem), IEnumerable(Of ComboBoxItem), IEnumerable, INotifyCollectionChanged</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_WPF_Input_ComboBoxSelection_Count" data-uid="C1.WPF.Input.ComboBoxSelection.Count">
          <a class="xref" href="C1.WPF.Input.ComboBoxSelection.Count.html#C1_WPF_Input_ComboBoxSelection_Count">Count</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the number of selected items.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_ComboBoxSelection_IsReadOnly" data-uid="C1.WPF.Input.ComboBoxSelection.IsReadOnly">
          <a class="xref" href="C1.WPF.Input.ComboBoxSelection.IsReadOnly.html#C1_WPF_Input_ComboBoxSelection_IsReadOnly">IsReadOnly</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_ComboBoxSelection_Item_System_Int32_" data-uid="C1.WPF.Input.ComboBoxSelection.Item(System.Int32)">
          <a class="xref" href="C1.WPF.Input.ComboBoxSelection.Item.html#C1_WPF_Input_ComboBoxSelection_Item_System_Int32_">this[int]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the selected item at the specified index.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_ComboBoxSelection_Ranges" data-uid="C1.WPF.Input.ComboBoxSelection.Ranges">
          <a class="xref" href="C1.WPF.Input.ComboBoxSelection.Ranges.html#C1_WPF_Input_ComboBoxSelection_Ranges">Ranges</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the selected indexes.</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_WPF_Input_ComboBoxSelection_Add_C1_WPF_Input_ComboBoxItem_" data-uid="C1.WPF.Input.ComboBoxSelection.Add(C1.WPF.Input.ComboBoxItem)">
          <a class="xref" href="C1.WPF.Input.ComboBoxSelection.Add.html#C1_WPF_Input_ComboBoxSelection_Add_C1_WPF_Input_ComboBoxItem_">Add(ComboBoxItem)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_ComboBoxSelection_Add_System_Object_" data-uid="C1.WPF.Input.ComboBoxSelection.Add(System.Object)">
          <a class="xref" href="C1.WPF.Input.ComboBoxSelection.Add.html#C1_WPF_Input_ComboBoxSelection_Add_System_Object_">Add(object)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_ComboBoxSelection_Clear" data-uid="C1.WPF.Input.ComboBoxSelection.Clear">
          <a class="xref" href="C1.WPF.Input.ComboBoxSelection.Clear.html#C1_WPF_Input_ComboBoxSelection_Clear">Clear()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_ComboBoxSelection_Contains_C1_WPF_Input_ComboBoxItem_" data-uid="C1.WPF.Input.ComboBoxSelection.Contains(C1.WPF.Input.ComboBoxItem)">
          <a class="xref" href="C1.WPF.Input.ComboBoxSelection.Contains.html#C1_WPF_Input_ComboBoxSelection_Contains_C1_WPF_Input_ComboBoxItem_">Contains(ComboBoxItem)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_ComboBoxSelection_CopyTo_C1_WPF_Input_ComboBoxItem___System_Int32_" data-uid="C1.WPF.Input.ComboBoxSelection.CopyTo(C1.WPF.Input.ComboBoxItem[],System.Int32)">
          <a class="xref" href="C1.WPF.Input.ComboBoxSelection.CopyTo.html#C1_WPF_Input_ComboBoxSelection_CopyTo_C1_WPF_Input_ComboBoxItem___System_Int32_">CopyTo(ComboBoxItem[], int)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_ComboBoxSelection_CopyTo_System_Array_System_Int32_" data-uid="C1.WPF.Input.ComboBoxSelection.CopyTo(System.Array,System.Int32)">
          <a class="xref" href="C1.WPF.Input.ComboBoxSelection.CopyTo.html#C1_WPF_Input_ComboBoxSelection_CopyTo_System_Array_System_Int32_">CopyTo(Array, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Copies the elements of the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.icollection">ICollection</a> to an <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.array">Array</a>, starting at a particular <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.array">Array</a> index.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_ComboBoxSelection_GetEnumerator" data-uid="C1.WPF.Input.ComboBoxSelection.GetEnumerator">
          <a class="xref" href="C1.WPF.Input.ComboBoxSelection.GetEnumerator.html#C1_WPF_Input_ComboBoxSelection_GetEnumerator">GetEnumerator()</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the enumerator.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_ComboBoxSelection_IndexOf_C1_WPF_Input_ComboBoxItem_" data-uid="C1.WPF.Input.ComboBoxSelection.IndexOf(C1.WPF.Input.ComboBoxItem)">
          <a class="xref" href="C1.WPF.Input.ComboBoxSelection.IndexOf.html#C1_WPF_Input_ComboBoxSelection_IndexOf_C1_WPF_Input_ComboBoxItem_">IndexOf(ComboBoxItem)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_ComboBoxSelection_Insert_System_Int32_C1_WPF_Input_ComboBoxItem_" data-uid="C1.WPF.Input.ComboBoxSelection.Insert(System.Int32,C1.WPF.Input.ComboBoxItem)">
          <a class="xref" href="C1.WPF.Input.ComboBoxSelection.Insert.html#C1_WPF_Input_ComboBoxSelection_Insert_System_Int32_C1_WPF_Input_ComboBoxItem_">Insert(int, ComboBoxItem)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_ComboBoxSelection_Remove_C1_WPF_Input_ComboBoxItem_" data-uid="C1.WPF.Input.ComboBoxSelection.Remove(C1.WPF.Input.ComboBoxItem)">
          <a class="xref" href="C1.WPF.Input.ComboBoxSelection.Remove.html#C1_WPF_Input_ComboBoxSelection_Remove_C1_WPF_Input_ComboBoxItem_">Remove(ComboBoxItem)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_WPF_Input_ComboBoxSelection_RemoveAt_System_Int32_" data-uid="C1.WPF.Input.ComboBoxSelection.RemoveAt(System.Int32)">
          <a class="xref" href="C1.WPF.Input.ComboBoxSelection.RemoveAt.html#C1_WPF_Input_ComboBoxSelection_RemoveAt_System_Int32_">RemoveAt(int)</a>
        </td>
        <td class="markdown level1 summary"></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_WPF_Input_ComboBoxSelection_CollectionChanged" data-uid="C1.WPF.Input.ComboBoxSelection.CollectionChanged">
          <a class="xref" href="C1.WPF.Input.ComboBoxSelection.CollectionChanged.html">CollectionChanged</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
    </tbody>
  </table>

</div>
