# C1.Web.Mvc.DropDown

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Web_Mvc_DropDown" data-uid="C1.Web.Mvc.DropDown" class="text-break">DropDown 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.InputBase.html">InputBase</a></div>
    <div class="level4"><a class="xref" href="C1.Web.Mvc.FormInputBase.html">FormInputBase</a></div>
    <div class="level5"><span class="xref">DropDown</span></div>
      <div class="level6"><a class="xref" href="C1.Web.Mvc.InputColor.html">InputColor</a></div>
      <div class="level6"><a class="xref" href="C1.Web.Mvc.InputDateBase.html">InputDateBase</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_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public abstract class DropDown : FormInputBase, IHtmlContent, ITemplate, IDropDown</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public MustInherit Class DropDown
    Inherits FormInputBase
    Implements IHtmlContent, ITemplate, IDropDown</code></pre>
  </div>
  <h5 id="C1_Web_Mvc_DropDown_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__ctor_Microsoft_AspNetCore_Mvc_Rendering_IHtmlHelper_System_String_" data-uid="C1.Web.Mvc.DropDown.#ctor(Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper,System.String)">
          <a class="xref" href="C1.Web.Mvc.DropDown.-ctor.html#C1_Web_Mvc_DropDown__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.html">DropDown</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_AutoExpandSelection" data-uid="C1.Web.Mvc.DropDown.AutoExpandSelection">
          <a class="xref" href="C1.Web.Mvc.DropDown.AutoExpandSelection.html#C1_Web_Mvc_DropDown_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_ClickAction" data-uid="C1.Web.Mvc.DropDown.ClickAction">
          <a class="xref" href="C1.Web.Mvc.DropDown.ClickAction.html#C1_Web_Mvc_DropDown_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_DropDownCssClass" data-uid="C1.Web.Mvc.DropDown.DropDownCssClass">
          <a class="xref" href="C1.Web.Mvc.DropDown.DropDownCssClass.html#C1_Web_Mvc_DropDown_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_InputType" data-uid="C1.Web.Mvc.DropDown.InputType">
          <a class="xref" href="C1.Web.Mvc.DropDown.InputType.html#C1_Web_Mvc_DropDown_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_IsAnimated" data-uid="C1.Web.Mvc.DropDown.IsAnimated">
          <a class="xref" href="C1.Web.Mvc.DropDown.IsAnimated.html#C1_Web_Mvc_DropDown_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_IsDroppedDown" data-uid="C1.Web.Mvc.DropDown.IsDroppedDown">
          <a class="xref" href="C1.Web.Mvc.DropDown.IsDroppedDown.html#C1_Web_Mvc_DropDown_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_IsReadOnly" data-uid="C1.Web.Mvc.DropDown.IsReadOnly">
          <a class="xref" href="C1.Web.Mvc.DropDown.IsReadOnly.html#C1_Web_Mvc_DropDown_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_IsRequired" data-uid="C1.Web.Mvc.DropDown.IsRequired">
          <a class="xref" href="C1.Web.Mvc.DropDown.IsRequired.html#C1_Web_Mvc_DropDown_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_KeyActionDownArrow" data-uid="C1.Web.Mvc.DropDown.KeyActionDownArrow">
          <a class="xref" href="C1.Web.Mvc.DropDown.KeyActionDownArrow.html#C1_Web_Mvc_DropDown_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_KeyActionUpArrow" data-uid="C1.Web.Mvc.DropDown.KeyActionUpArrow">
          <a class="xref" href="C1.Web.Mvc.DropDown.KeyActionUpArrow.html#C1_Web_Mvc_DropDown_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_OnClientIsDroppedDownChanged" data-uid="C1.Web.Mvc.DropDown.OnClientIsDroppedDownChanged">
          <a class="xref" href="C1.Web.Mvc.DropDown.OnClientIsDroppedDownChanged.html#C1_Web_Mvc_DropDown_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_OnClientIsDroppedDownChanging" data-uid="C1.Web.Mvc.DropDown.OnClientIsDroppedDownChanging">
          <a class="xref" href="C1.Web.Mvc.DropDown.OnClientIsDroppedDownChanging.html#C1_Web_Mvc_DropDown_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_OnClientTextChanged" data-uid="C1.Web.Mvc.DropDown.OnClientTextChanged">
          <a class="xref" href="C1.Web.Mvc.DropDown.OnClientTextChanged.html#C1_Web_Mvc_DropDown_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_Placeholder" data-uid="C1.Web.Mvc.DropDown.Placeholder">
          <a class="xref" href="C1.Web.Mvc.DropDown.Placeholder.html#C1_Web_Mvc_DropDown_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_ShowDropDownButton" data-uid="C1.Web.Mvc.DropDown.ShowDropDownButton">
          <a class="xref" href="C1.Web.Mvc.DropDown.ShowDropDownButton.html#C1_Web_Mvc_DropDown_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_Text" data-uid="C1.Web.Mvc.DropDown.Text">
          <a class="xref" href="C1.Web.Mvc.DropDown.Text.html#C1_Web_Mvc_DropDown_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>
