# C1.Framework.SplitButtonElement

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Framework_SplitButtonElement" data-uid="C1.Framework.SplitButtonElement" class="text-break">SplitButtonElement Class
</h1>
  <div class="markdown level0 summary"><p>Represents a simple splitbutton 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="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.StackPanel.html">StackPanel</a></div>
    <div class="level4"><a class="xref" href="C1.Framework.ButtonElement.html">ButtonElement</a></div>
    <div class="level5"><span class="xref">SplitButtonElement</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="C1.Win.Accessibility.ISupportUia.html">ISupportUia</a></div>
    <div><a class="xref" href="C1.Framework.IToolTipElement.html">IToolTipElement</a></div>
    <div><a class="xref" href="C1.Win.Accessibility.Items.IUiaButton.html">IUiaButton</a></div>
    <div><a class="xref" href="C1.Win.Accessibility.Items.BaseInterfaces.IUiaInvokeProvider.html">IUiaInvokeProvider</a></div>
    <div><a class="xref" href="C1.Framework.IDropDownOwner.html">IDropDownOwner</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_SplitButtonElement_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class SplitButtonElement : ButtonElement, ISupportUia, IToolTipElement, IUiaButton, IUiaInvokeProvider, IDropDownOwner</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class SplitButtonElement
    Inherits ButtonElement
    Implements ISupportUia, IToolTipElement, IUiaButton, IUiaInvokeProvider, IDropDownOwner</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_SplitButtonElement__ctor" data-uid="C1.Framework.SplitButtonElement.#ctor">
          <a class="xref" href="C1.Framework.SplitButtonElement.-ctor.html#C1_Framework_SplitButtonElement__ctor">SplitButtonElement()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates an instance of <a class="xref" href="C1.Framework.SplitButtonElement.html">SplitButtonElement</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_SplitButtonElement_DropDown" data-uid="C1.Framework.SplitButtonElement.DropDown">
          <a class="xref" href="C1.Framework.SplitButtonElement.DropDown.html#C1_Framework_SplitButtonElement_DropDown">DropDown</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="C1.Framework.SplitButtonElement.DropDown.html#C1_Framework_SplitButtonElement_DropDown">DropDown</a> form relates to this <a class="xref" href="C1.Framework.SplitButtonElement.html">SplitButtonElement</a>.
<remark>When set a new value, it shouldn't be null and it's <a class="xref" href="C1.Framework.DropDownFormBase.DropDownOwner.html#C1_Framework_DropDownFormBase_DropDownOwner">DropDownOwner</a> should be current <a class="xref" href="C1.Framework.SplitButtonElement.html">SplitButtonElement</a>.</remark></p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_SplitButtonElement_Icon" data-uid="C1.Framework.SplitButtonElement.Icon">
          <a class="xref" href="C1.Framework.SplitButtonElement.Icon.html#C1_Framework_SplitButtonElement_Icon">Icon</a>
        </td>
        <td class="markdown level1 summary"><p><a class="xref" href="C1.Framework.IconElement.html">IconElement</a> that holds an <a class="xref" href="C1.Framework.C1Icon.html">C1Icon</a> displayed on the button.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_SplitButtonElement_IsDroppedDown" data-uid="C1.Framework.SplitButtonElement.IsDroppedDown">
          <a class="xref" href="C1.Framework.SplitButtonElement.IsDroppedDown.html#C1_Framework_SplitButtonElement_IsDroppedDown">IsDroppedDown</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value determines whether the dropdown is open.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_SplitButtonElement_Items" data-uid="C1.Framework.SplitButtonElement.Items">
          <a class="xref" href="C1.Framework.SplitButtonElement.Items.html#C1_Framework_SplitButtonElement_Items">Items</a>
        </td>
        <td class="markdown level1 summary"><p>The set of dropdown items.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_SplitButtonElement_SelectedIndex" data-uid="C1.Framework.SplitButtonElement.SelectedIndex">
          <a class="xref" href="C1.Framework.SplitButtonElement.SelectedIndex.html#C1_Framework_SplitButtonElement_SelectedIndex">SelectedIndex</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the index of the selected element.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_SplitButtonElement_SelectedItem" data-uid="C1.Framework.SplitButtonElement.SelectedItem">
          <a class="xref" href="C1.Framework.SplitButtonElement.SelectedItem.html#C1_Framework_SplitButtonElement_SelectedItem">SelectedItem</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the selected item.</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_SplitButtonElement_AddItems_System_Collections_Generic_IEnumerable_C1_Framework_SplitButtonElement_SplitButtonElementDropDownListItem__" data-uid="C1.Framework.SplitButtonElement.AddItems(System.Collections.Generic.IEnumerable{C1.Framework.SplitButtonElement.SplitButtonElementDropDownListItem})">
          <a class="xref" href="C1.Framework.SplitButtonElement.AddItems.html#C1_Framework_SplitButtonElement_AddItems_System_Collections_Generic_IEnumerable_C1_Framework_SplitButtonElement_SplitButtonElementDropDownListItem__">AddItems(IEnumerable&lt;SplitButtonElementDropDownListItem&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Fills dropdown with items.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_SplitButtonElement_AddItems_System_Collections_Generic_IEnumerable_System_String__" data-uid="C1.Framework.SplitButtonElement.AddItems(System.Collections.Generic.IEnumerable{System.String})">
          <a class="xref" href="C1.Framework.SplitButtonElement.AddItems.html#C1_Framework_SplitButtonElement_AddItems_System_Collections_Generic_IEnumerable_System_String__">AddItems(IEnumerable&lt;string&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Fills dropdown with items.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_SplitButtonElement_OnKeyDown_System_Windows_Forms_KeyEventArgs_" data-uid="C1.Framework.SplitButtonElement.OnKeyDown(System.Windows.Forms.KeyEventArgs)">
          <a class="xref" href="C1.Framework.SplitButtonElement.OnKeyDown.html#C1_Framework_SplitButtonElement_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_SplitButtonElement_OnMouseEnter_System_EventArgs_" data-uid="C1.Framework.SplitButtonElement.OnMouseEnter(System.EventArgs)">
          <a class="xref" href="C1.Framework.SplitButtonElement.OnMouseEnter.html#C1_Framework_SplitButtonElement_OnMouseEnter_System_EventArgs_">OnMouseEnter(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Called by the host control when the mouse enters this <a class="xref" href="C1.Framework.Element.html">Element</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_SplitButtonElement_OnMouseUp_System_Windows_Forms_MouseEventArgs_" data-uid="C1.Framework.SplitButtonElement.OnMouseUp(System.Windows.Forms.MouseEventArgs)">
          <a class="xref" href="C1.Framework.SplitButtonElement.OnMouseUp.html#C1_Framework_SplitButtonElement_OnMouseUp_System_Windows_Forms_MouseEventArgs_">OnMouseUp(MouseEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Called by the host control when the user releases a mouse button over this <a class="xref" href="C1.Framework.Element.html">Element</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_SplitButtonElement_OnRightToLeftChanged" data-uid="C1.Framework.SplitButtonElement.OnRightToLeftChanged">
          <a class="xref" href="C1.Framework.SplitButtonElement.OnRightToLeftChanged.html#C1_Framework_SplitButtonElement_OnRightToLeftChanged">OnRightToLeftChanged()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Framework_SplitButtonElement_OnSelectedIndexChanged" data-uid="C1.Framework.SplitButtonElement.OnSelectedIndexChanged">
          <a class="xref" href="C1.Framework.SplitButtonElement.OnSelectedIndexChanged.html#C1_Framework_SplitButtonElement_OnSelectedIndexChanged">OnSelectedIndexChanged()</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <a class="xref" href="C1.Framework.SplitButtonElement.SelectedIndexChanged.html">SelectedIndexChanged</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_SplitButtonElement_OnSelectedItemChanged" data-uid="C1.Framework.SplitButtonElement.OnSelectedItemChanged">
          <a class="xref" href="C1.Framework.SplitButtonElement.OnSelectedItemChanged.html#C1_Framework_SplitButtonElement_OnSelectedItemChanged">OnSelectedItemChanged()</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <a class="xref" href="C1.Framework.SplitButtonElement.SelectedItemChanged.html">SelectedItemChanged</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_SplitButtonElement_SetIcon_C1_Framework_C1Icon_" data-uid="C1.Framework.SplitButtonElement.SetIcon(C1.Framework.C1Icon)">
          <a class="xref" href="C1.Framework.SplitButtonElement.SetIcon.html#C1_Framework_SplitButtonElement_SetIcon_C1_Framework_C1Icon_">SetIcon(C1Icon)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets icon to be displayed on the button.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_SplitButtonElement_SetSelectedItembyValue_System_String_" data-uid="C1.Framework.SplitButtonElement.SetSelectedItembyValue(System.String)">
          <a class="xref" href="C1.Framework.SplitButtonElement.SetSelectedItembyValue.html#C1_Framework_SplitButtonElement_SetSelectedItembyValue_System_String_">SetSelectedItembyValue(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets <a class="xref" href="C1.Framework.SplitButtonElement.SplitButtonElementDropDownListItem.html">SplitButtonElement.SplitButtonElementDropDownListItem</a> with value equals with given value as selected item.</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_SplitButtonElement_SelectedIndexChanged" data-uid="C1.Framework.SplitButtonElement.SelectedIndexChanged">
          <a class="xref" href="C1.Framework.SplitButtonElement.SelectedIndexChanged.html">SelectedIndexChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Event raised when selected index changed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Framework_SplitButtonElement_SelectedItemChanged" data-uid="C1.Framework.SplitButtonElement.SelectedItemChanged">
          <a class="xref" href="C1.Framework.SplitButtonElement.SelectedItemChanged.html">SelectedItemChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Event raised when selected item changed.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="extensionmethods">Extension Methods</h3>
  <div>
      <a class="xref" href="C1.Win.Accessibility.Items.ProviderExt.InvokeExt.html#C1_Win_Accessibility_Items_ProviderExt_InvokeExt_C1_Win_Accessibility_Items_BaseInterfaces_IUiaInvokeProvider_C1_Win_Accessibility_UiaItem_">ProviderExt.InvokeExt(IUiaInvokeProvider, UiaItem)</a>
  </div>

</div>
