# C1.Web.Mvc.DropDown-1

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Web_Mvc_DropDown_1" data-uid="C1.Web.Mvc.DropDown`1" class="text-break">DropDown&lt;T&gt; Class
</h1>
  <div class="markdown level0 summary"><p>DropDown control (abstract) contains an input element and a button used to show or hide the drop-down.</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.Web.Mvc.Component.html">Component</a></div>
    <div class="level2"><a class="xref" href="C1.Web.Mvc.Control.html">Control</a></div>
    <div class="level3"><a class="xref" href="C1.Web.Mvc.ItemsBoundControl-1.html">ItemsBoundControl</a>&lt;T&gt;</div>
    <div class="level4"><span class="xref">DropDown&lt;T&gt;</span></div>
      <div class="level5"><a class="xref" href="C1.Web.Mvc.ComboBoxBase-1.html">ComboBoxBase&lt;T&gt;</a></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/microsoft.aspnetcore.html.ihtmlcontent">IHtmlContent</a></div>
    <div><a class="xref" href="C1.Web.Mvc.ITemplate.html">ITemplate</a></div>
    <div><a class="xref" href="C1.Web.Mvc.IDropDown.html">IDropDown</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Web.Mvc.html">C1.Web.Mvc</a></h6>
  <h6><strong>Assembly</strong>: C1.AspNetCore.Mvc.dll</h6>
  <h5 id="C1_Web_Mvc_DropDown_1_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public abstract class DropDown&lt;T&gt; : ItemsBoundControl&lt;T&gt;, IHtmlContent, ITemplate, IDropDown</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public MustInherit Class DropDown(Of T)
    Inherits ItemsBoundControl(Of T)
    Implements IHtmlContent, ITemplate, IDropDown</code></pre>
  </div>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">T</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <h5 id="C1_Web_Mvc_DropDown_1_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>Derived classes must override the _createDropDown method to create whatever editor they want to show in the drop down area (a list of items, a calendar, a color editor, etc).</p>
</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_Web_Mvc_DropDown_1__ctor_Microsoft_AspNetCore_Mvc_Rendering_IHtmlHelper_System_String_" data-uid="C1.Web.Mvc.DropDown`1.#ctor(Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper,System.String)">
          <a class="xref" href="C1.Web.Mvc.DropDown-1.-ctor.html#C1_Web_Mvc_DropDown_1__ctor_Microsoft_AspNetCore_Mvc_Rendering_IHtmlHelper_System_String_">DropDown(IHtmlHelper, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates one <a class="xref" href="C1.Web.Mvc.DropDown-1.html">DropDown&lt;T&gt;</a> instance.</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_Web_Mvc_DropDown_1_AutoExpandSelection" data-uid="C1.Web.Mvc.DropDown`1.AutoExpandSelection">
          <a class="xref" href="C1.Web.Mvc.DropDown-1.AutoExpandSelection.html#C1_Web_Mvc_DropDown_1_AutoExpandSelection">AutoExpandSelection</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that indicates whether the control should automatically expand the selection to whole words/numbers when the control is clicked.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_DropDown_1_ClickAction" data-uid="C1.Web.Mvc.DropDown`1.ClickAction">
          <a class="xref" href="C1.Web.Mvc.DropDown-1.ClickAction.html#C1_Web_Mvc_DropDown_1_ClickAction">ClickAction</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that specifies the action to perform when the user clicks the input element in the control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_DropDown_1_DropDownCssClass" data-uid="C1.Web.Mvc.DropDown`1.DropDownCssClass">
          <a class="xref" href="C1.Web.Mvc.DropDown-1.DropDownCssClass.html#C1_Web_Mvc_DropDown_1_DropDownCssClass">DropDownCssClass</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a CSS class name to add to the control's drop-down element.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_DropDown_1_InputType" data-uid="C1.Web.Mvc.DropDown`1.InputType">
          <a class="xref" href="C1.Web.Mvc.DropDown-1.InputType.html#C1_Web_Mvc_DropDown_1_InputType">InputType</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the &quot;type&quot; attribute of the HTML input element hosted by the control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_DropDown_1_IsAnimated" data-uid="C1.Web.Mvc.DropDown`1.IsAnimated">
          <a class="xref" href="C1.Web.Mvc.DropDown-1.IsAnimated.html#C1_Web_Mvc_DropDown_1_IsAnimated">IsAnimated</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that indicates whether the control should use a fade-in animation when displaying the drop-down.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_DropDown_1_IsDroppedDown" data-uid="C1.Web.Mvc.DropDown`1.IsDroppedDown">
          <a class="xref" href="C1.Web.Mvc.DropDown-1.IsDroppedDown.html#C1_Web_Mvc_DropDown_1_IsDroppedDown">IsDroppedDown</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the drop down is currently visible.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_DropDown_1_IsReadOnly" data-uid="C1.Web.Mvc.DropDown`1.IsReadOnly">
          <a class="xref" href="C1.Web.Mvc.DropDown-1.IsReadOnly.html#C1_Web_Mvc_DropDown_1_IsReadOnly">IsReadOnly</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that indicates whether the user can modify the control value using the mouse and keyboard.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_DropDown_1_IsRequired" data-uid="C1.Web.Mvc.DropDown`1.IsRequired">
          <a class="xref" href="C1.Web.Mvc.DropDown-1.IsRequired.html#C1_Web_Mvc_DropDown_1_IsRequired">IsRequired</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the control value must be a non-empty string.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_DropDown_1_KeyActionDownArrow" data-uid="C1.Web.Mvc.DropDown`1.KeyActionDownArrow">
          <a class="xref" href="C1.Web.Mvc.DropDown-1.KeyActionDownArrow.html#C1_Web_Mvc_DropDown_1_KeyActionDownArrow">KeyActionDownArrow</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the action to perform when the DOWN ARROW key is pressed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_DropDown_1_KeyActionUpArrow" data-uid="C1.Web.Mvc.DropDown`1.KeyActionUpArrow">
          <a class="xref" href="C1.Web.Mvc.DropDown-1.KeyActionUpArrow.html#C1_Web_Mvc_DropDown_1_KeyActionUpArrow">KeyActionUpArrow</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the action to perform when the UP ARROW key is pressed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_DropDown_1_OnClientIsDroppedDownChanged" data-uid="C1.Web.Mvc.DropDown`1.OnClientIsDroppedDownChanged">
          <a class="xref" href="C1.Web.Mvc.DropDown-1.OnClientIsDroppedDownChanged.html#C1_Web_Mvc_DropDown_1_OnClientIsDroppedDownChanged">OnClientIsDroppedDownChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs after the drop down is shown or hidden.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_DropDown_1_OnClientIsDroppedDownChanging" data-uid="C1.Web.Mvc.DropDown`1.OnClientIsDroppedDownChanging">
          <a class="xref" href="C1.Web.Mvc.DropDown-1.OnClientIsDroppedDownChanging.html#C1_Web_Mvc_DropDown_1_OnClientIsDroppedDownChanging">OnClientIsDroppedDownChanging</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs before the drop down is shown or hidden.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_DropDown_1_OnClientTextChanged" data-uid="C1.Web.Mvc.DropDown`1.OnClientTextChanged">
          <a class="xref" href="C1.Web.Mvc.DropDown-1.OnClientTextChanged.html#C1_Web_Mvc_DropDown_1_OnClientTextChanged">OnClientTextChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the value of the Text property changes.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_DropDown_1_Placeholder" data-uid="C1.Web.Mvc.DropDown`1.Placeholder">
          <a class="xref" href="C1.Web.Mvc.DropDown-1.Placeholder.html#C1_Web_Mvc_DropDown_1_Placeholder">Placeholder</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the string shown as a hint when the control is empty.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_DropDown_1_ShowDropDownButton" data-uid="C1.Web.Mvc.DropDown`1.ShowDropDownButton">
          <a class="xref" href="C1.Web.Mvc.DropDown-1.ShowDropDownButton.html#C1_Web_Mvc_DropDown_1_ShowDropDownButton">ShowDropDownButton</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the control should display a drop-down button.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_DropDown_1_Text" data-uid="C1.Web.Mvc.DropDown`1.Text">
          <a class="xref" href="C1.Web.Mvc.DropDown-1.Text.html#C1_Web_Mvc_DropDown_1_Text">Text</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the text shown on the control.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
