# C1.Framework.ListBoxElement

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Framework_ListBoxElement" data-uid="C1.Framework.ListBoxElement" class="text-break">ListBoxElement Class
</h1>
  <div class="markdown level0 summary"><p>Implements base ListBox with &quot;Select/unselect All&quot; option</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="C1.Framework.Element.html">Element</a></div>
    <div class="level2"><a class="xref" href="C1.Framework.BasePanel.html">BasePanel</a></div>
    <div class="level3"><a class="xref" href="C1.Framework.DockPanel.html">DockPanel</a></div>
    <div class="level4"><span class="xref">ListBoxElement</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="C1.Win.Accessibility.ISupportUia.html">ISupportUia</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_ListBoxElement_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class ListBoxElement : DockPanel, ISupportUia</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class ListBoxElement
    Inherits DockPanel
    Implements ISupportUia</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_ListBoxElement__ctor" data-uid="C1.Framework.ListBoxElement.#ctor">
          <a class="xref" href="C1.Framework.ListBoxElement.-ctor.html#C1_Framework_ListBoxElement__ctor">ListBoxElement()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new instance of <a class="xref" href="C1.Framework.ListBoxElement.html">ListBoxElement</a></p>
</td>
      </tr>
    </tbody>
  </table>
  <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_Framework_ListBoxElement_CheckAll" data-uid="C1.Framework.ListBoxElement.CheckAll">
          <a class="xref" href="C1.Framework.ListBoxElement.CheckAll.html#C1_Framework_ListBoxElement_CheckAll">CheckAll</a>
        </td>
        <td class="markdown level1 summary"><p>Gets &quot;CheckAll&quot; element.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_ListBoxElement_EmptyString" data-uid="C1.Framework.ListBoxElement.EmptyString">
          <a class="xref" href="C1.Framework.ListBoxElement.EmptyString.html#C1_Framework_ListBoxElement_EmptyString">EmptyString</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value used for displaying empty strings.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_ListBoxElement_Items" data-uid="C1.Framework.ListBoxElement.Items">
          <a class="xref" href="C1.Framework.ListBoxElement.Items.html#C1_Framework_ListBoxElement_Items">Items</a>
        </td>
        <td class="markdown level1 summary"><p>Gets checklist child items as a <a class="xref" href="C1.Framework.ElementList.html">ElementList</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_ListBoxElement_NullEmptyString" data-uid="C1.Framework.ListBoxElement.NullEmptyString">
          <a class="xref" href="C1.Framework.ListBoxElement.NullEmptyString.html#C1_Framework_ListBoxElement_NullEmptyString">NullEmptyString</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value used for displaying null ore empty strings.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_ListBoxElement_NullString" data-uid="C1.Framework.ListBoxElement.NullString">
          <a class="xref" href="C1.Framework.ListBoxElement.NullString.html#C1_Framework_ListBoxElement_NullString">NullString</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value used for displaying null strings.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_ListBoxElement_ScrollableCheckList" data-uid="C1.Framework.ListBoxElement.ScrollableCheckList">
          <a class="xref" href="C1.Framework.ListBoxElement.ScrollableCheckList.html#C1_Framework_ListBoxElement_ScrollableCheckList">ScrollableCheckList</a>
        </td>
        <td class="markdown level1 summary"><p>Gets list holder panel.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_ListBoxElement_SelectedIndex" data-uid="C1.Framework.ListBoxElement.SelectedIndex">
          <a class="xref" href="C1.Framework.ListBoxElement.SelectedIndex.html#C1_Framework_ListBoxElement_SelectedIndex">SelectedIndex</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets currently selected index.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_ListBoxElement_UpdateCheckList" data-uid="C1.Framework.ListBoxElement.UpdateCheckList">
          <a class="xref" href="C1.Framework.ListBoxElement.UpdateCheckList.html#C1_Framework_ListBoxElement_UpdateCheckList">UpdateCheckList</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value determines whether checklist is blocked to be updated or not.</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_Framework_ListBoxElement_AddItem_System_String_System_Boolean_" data-uid="C1.Framework.ListBoxElement.AddItem(System.String,System.Boolean)">
          <a class="xref" href="C1.Framework.ListBoxElement.AddItem.html#C1_Framework_ListBoxElement_AddItem_System_String_System_Boolean_">AddItem(string, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds new checkbox item with determined displayed  text and checkstate.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_ListBoxElement_AreAllItemsChecked_System_Boolean_" data-uid="C1.Framework.ListBoxElement.AreAllItemsChecked(System.Boolean)">
          <a class="xref" href="C1.Framework.ListBoxElement.AreAllItemsChecked.html#C1_Framework_ListBoxElement_AreAllItemsChecked_System_Boolean_">AreAllItemsChecked(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Geths a value indicates whether all items has equal checkstate determined</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_ListBoxElement_ClearItems" data-uid="C1.Framework.ListBoxElement.ClearItems">
          <a class="xref" href="C1.Framework.ListBoxElement.ClearItems.html#C1_Framework_ListBoxElement_ClearItems">ClearItems()</a>
        </td>
        <td class="markdown level1 summary"><p>Clears checklist.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_ListBoxElement_GetItemCheckState_System_Int32_" data-uid="C1.Framework.ListBoxElement.GetItemCheckState(System.Int32)">
          <a class="xref" href="C1.Framework.ListBoxElement.GetItemCheckState.html#C1_Framework_ListBoxElement_GetItemCheckState_System_Int32_">GetItemCheckState(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets checkstate for an item with the certain index.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_ListBoxElement_GetItemChecked_System_Int32_" data-uid="C1.Framework.ListBoxElement.GetItemChecked(System.Int32)">
          <a class="xref" href="C1.Framework.ListBoxElement.GetItemChecked.html#C1_Framework_ListBoxElement_GetItemChecked_System_Int32_">GetItemChecked(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value that indicates whether the item with certain index is checked or not.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_ListBoxElement_GetObjectCheckState_System_Object_" data-uid="C1.Framework.ListBoxElement.GetObjectCheckState(System.Object)">
          <a class="xref" href="C1.Framework.ListBoxElement.GetObjectCheckState.html#C1_Framework_ListBoxElement_GetObjectCheckState_System_Object_">GetObjectCheckState(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets item's checkstate.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_ListBoxElement_IsInputKey_System_Windows_Forms_Keys_" data-uid="C1.Framework.ListBoxElement.IsInputKey(System.Windows.Forms.Keys)">
          <a class="xref" href="C1.Framework.ListBoxElement.IsInputKey.html#C1_Framework_ListBoxElement_IsInputKey_System_Windows_Forms_Keys_">IsInputKey(Keys)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the specified key is a regular input key or a special key that requires preprocessing.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_ListBoxElement_IsItemChecked_System_String_" data-uid="C1.Framework.ListBoxElement.IsItemChecked(System.String)">
          <a class="xref" href="C1.Framework.ListBoxElement.IsItemChecked.html#C1_Framework_ListBoxElement_IsItemChecked_System_String_">IsItemChecked(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value that indicates whether the item is checked or not.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_ListBoxElement_OnGotFocus_System_EventArgs_" data-uid="C1.Framework.ListBoxElement.OnGotFocus(System.EventArgs)">
          <a class="xref" href="C1.Framework.ListBoxElement.OnGotFocus.html#C1_Framework_ListBoxElement_OnGotFocus_System_EventArgs_">OnGotFocus(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Called by the host control when this <a class="xref" href="C1.Framework.Element.html">Element</a> receives the focus.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_ListBoxElement_OnItemChecked_C1_Framework_ListBoxElement_C1ItemCheckEventArgs_" data-uid="C1.Framework.ListBoxElement.OnItemChecked(C1.Framework.ListBoxElement.C1ItemCheckEventArgs)">
          <a class="xref" href="C1.Framework.ListBoxElement.OnItemChecked.html#C1_Framework_ListBoxElement_OnItemChecked_C1_Framework_ListBoxElement_C1ItemCheckEventArgs_">OnItemChecked(C1ItemCheckEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raizes an event when item's check state changed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_ListBoxElement_OnKeyDown_System_Windows_Forms_KeyEventArgs_" data-uid="C1.Framework.ListBoxElement.OnKeyDown(System.Windows.Forms.KeyEventArgs)">
          <a class="xref" href="C1.Framework.ListBoxElement.OnKeyDown.html#C1_Framework_ListBoxElement_OnKeyDown_System_Windows_Forms_KeyEventArgs_">OnKeyDown(KeyEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Called by the host control when the user presses a key and this <a class="xref" href="C1.Framework.Element.html">Element</a> has the focus.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_ListBoxElement_OnKeyPress_System_Windows_Forms_KeyPressEventArgs_" data-uid="C1.Framework.ListBoxElement.OnKeyPress(System.Windows.Forms.KeyPressEventArgs)">
          <a class="xref" href="C1.Framework.ListBoxElement.OnKeyPress.html#C1_Framework_ListBoxElement_OnKeyPress_System_Windows_Forms_KeyPressEventArgs_">OnKeyPress(KeyPressEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Called by the host control when the user presses a character key and this <a class="xref" href="C1.Framework.Element.html">Element</a> has the focus.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_ListBoxElement_OnKeyUp_System_Windows_Forms_KeyEventArgs_" data-uid="C1.Framework.ListBoxElement.OnKeyUp(System.Windows.Forms.KeyEventArgs)">
          <a class="xref" href="C1.Framework.ListBoxElement.OnKeyUp.html#C1_Framework_ListBoxElement_OnKeyUp_System_Windows_Forms_KeyEventArgs_">OnKeyUp(KeyEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Called by the host control when the user releases a key and this <a class="xref" href="C1.Framework.Element.html">Element</a> has the focus.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_ListBoxElement_OnLostFocus_System_EventArgs_" data-uid="C1.Framework.ListBoxElement.OnLostFocus(System.EventArgs)">
          <a class="xref" href="C1.Framework.ListBoxElement.OnLostFocus.html#C1_Framework_ListBoxElement_OnLostFocus_System_EventArgs_">OnLostFocus(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Called by the host control when this <a class="xref" href="C1.Framework.Element.html">Element</a> loses the focus.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_ListBoxElement_SetItemCheckState_System_Int32_System_Windows_Forms_CheckState_" data-uid="C1.Framework.ListBoxElement.SetItemCheckState(System.Int32,System.Windows.Forms.CheckState)">
          <a class="xref" href="C1.Framework.ListBoxElement.SetItemCheckState.html#C1_Framework_ListBoxElement_SetItemCheckState_System_Int32_System_Windows_Forms_CheckState_">SetItemCheckState(int, CheckState)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets checkstate for an item with the certain index.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_ListBoxElement_SetItemChecked_System_Int32_System_Boolean_" data-uid="C1.Framework.ListBoxElement.SetItemChecked(System.Int32,System.Boolean)">
          <a class="xref" href="C1.Framework.ListBoxElement.SetItemChecked.html#C1_Framework_ListBoxElement_SetItemChecked_System_Int32_System_Boolean_">SetItemChecked(int, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.checkstate">CheckState</a> for an item with the certain index.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_ListBoxElement_SetObjectCheckState_System_Object_System_Windows_Forms_CheckState_" data-uid="C1.Framework.ListBoxElement.SetObjectCheckState(System.Object,System.Windows.Forms.CheckState)">
          <a class="xref" href="C1.Framework.ListBoxElement.SetObjectCheckState.html#C1_Framework_ListBoxElement_SetObjectCheckState_System_Object_System_Windows_Forms_CheckState_">SetObjectCheckState(object, CheckState)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets item's checkstate.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_ListBoxElement_UpdateSelectAllCheckState" data-uid="C1.Framework.ListBoxElement.UpdateSelectAllCheckState">
          <a class="xref" href="C1.Framework.ListBoxElement.UpdateSelectAllCheckState.html#C1_Framework_ListBoxElement_UpdateSelectAllCheckState">UpdateSelectAllCheckState()</a>
        </td>
        <td class="markdown level1 summary"><p>Updates &quot;Select All&quot; checkbox checkstate according with list items checkstates.</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_ListBoxElement_ItemChecked" data-uid="C1.Framework.ListBoxElement.ItemChecked">
          <a class="xref" href="C1.Framework.ListBoxElement.ItemChecked.html">ItemChecked</a>
        </td>
        <td class="markdown level1 summary"><p>Event raized when item's check state changed.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
