# C1.Web.Mvc.Fluent.DropDownBuilder-2

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Web_Mvc_Fluent_DropDownBuilder_2" data-uid="C1.Web.Mvc.Fluent.DropDownBuilder`2" class="text-break">DropDownBuilder&lt;TControl, TBuilder&gt; Class
</h1>
  <div class="markdown level0 summary"><p>Defines a builder to configurate <a class="xref" href="C1.Web.Mvc.DropDown.html">DropDown</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">HideObjectMembers</span></div>
    <div class="level2"><a class="xref" href="C1.Web.Mvc.Fluent.BaseBuilder-2.html">BaseBuilder</a>&lt;TControl, TBuilder&gt;</div>
    <div class="level3"><a class="xref" href="C1.Web.Mvc.Fluent.ComponentBuilder-2.html">ComponentBuilder</a>&lt;TControl, TBuilder&gt;</div>
    <div class="level4"><a class="xref" href="C1.Web.Mvc.Fluent.ControlBuilder-2.html">ControlBuilder</a>&lt;TControl, TBuilder&gt;</div>
    <div class="level5"><a class="xref" href="C1.Web.Mvc.Fluent.InputBaseBuilder-2.html">InputBaseBuilder</a>&lt;TControl, TBuilder&gt;</div>
    <div class="level6"><a class="xref" href="C1.Web.Mvc.Fluent.FormInputBaseBuilder-2.html">FormInputBaseBuilder</a>&lt;TControl, TBuilder&gt;</div>
    <div class="level7"><span class="xref">DropDownBuilder&lt;TControl, TBuilder&gt;</span></div>
      <div class="level8"><a class="xref" href="C1.Web.Mvc.Fluent.InputColorBuilder.html">InputColorBuilder</a></div>
      <div class="level8"><a class="xref" href="C1.Web.Mvc.Fluent.InputDateBaseBuilder-2.html">InputDateBaseBuilder&lt;TControl, TBuilder&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>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Web.Mvc.Fluent.html">C1.Web.Mvc.Fluent</a></h6>
  <h6><strong>Assembly</strong>: C1.AspNetCore.Mvc.dll</h6>
  <h5 id="C1_Web_Mvc_Fluent_DropDownBuilder_2_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public abstract class DropDownBuilder&lt;TControl, TBuilder&gt; : FormInputBaseBuilder&lt;TControl, TBuilder&gt;, IHtmlContent where TControl : DropDown where TBuilder : DropDownBuilder&lt;TControl, TBuilder&gt;</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public MustInherit Class DropDownBuilder(Of TControl As DropDown, TBuilder As DropDownBuilder(Of TControl, TBuilder))
    Inherits FormInputBaseBuilder(Of TControl, TBuilder)
    Implements IHtmlContent</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">TControl</span></td>
        <td></td>
      </tr>
      <tr>
        <td><span class="parametername">TBuilder</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <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_Fluent_DropDownBuilder_2__ctor__0_" data-uid="C1.Web.Mvc.Fluent.DropDownBuilder`2.#ctor(`0)">
          <a class="xref" href="C1.Web.Mvc.Fluent.DropDownBuilder-2.-ctor.html#C1_Web_Mvc_Fluent_DropDownBuilder_2__ctor__0_">DropDownBuilder(TControl)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates one <a class="xref" href="C1.Web.Mvc.Fluent.DropDownBuilder-2.html">DropDownBuilder&lt;TControl, TBuilder&gt;</a> instance to configurate <code class="paramref">component</code>.</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_Web_Mvc_Fluent_DropDownBuilder_2_AutoExpandSelection_System_Boolean_" data-uid="C1.Web.Mvc.Fluent.DropDownBuilder`2.AutoExpandSelection(System.Boolean)">
          <a class="xref" href="C1.Web.Mvc.Fluent.DropDownBuilder-2.AutoExpandSelection.html#C1_Web_Mvc_Fluent_DropDownBuilder_2_AutoExpandSelection_System_Boolean_">AutoExpandSelection(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.DropDown.AutoExpandSelection.html#C1_Web_Mvc_DropDown_AutoExpandSelection">AutoExpandSelection</a>.
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_Fluent_DropDownBuilder_2_ClickAction_C1_Web_Mvc_ClickAction_" data-uid="C1.Web.Mvc.Fluent.DropDownBuilder`2.ClickAction(C1.Web.Mvc.ClickAction)">
          <a class="xref" href="C1.Web.Mvc.Fluent.DropDownBuilder-2.ClickAction.html#C1_Web_Mvc_Fluent_DropDownBuilder_2_ClickAction_C1_Web_Mvc_ClickAction_">ClickAction(ClickAction)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.DropDown.ClickAction.html#C1_Web_Mvc_DropDown_ClickAction">ClickAction</a>.
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_Fluent_DropDownBuilder_2_DropDownCssClass_System_String_" data-uid="C1.Web.Mvc.Fluent.DropDownBuilder`2.DropDownCssClass(System.String)">
          <a class="xref" href="C1.Web.Mvc.Fluent.DropDownBuilder-2.DropDownCssClass.html#C1_Web_Mvc_Fluent_DropDownBuilder_2_DropDownCssClass_System_String_">DropDownCssClass(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.DropDown.DropDownCssClass.html#C1_Web_Mvc_DropDown_DropDownCssClass">DropDownCssClass</a>.
Sets a CSS class name to add to the control's drop-down element.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Fluent_DropDownBuilder_2_InputType_System_String_" data-uid="C1.Web.Mvc.Fluent.DropDownBuilder`2.InputType(System.String)">
          <a class="xref" href="C1.Web.Mvc.Fluent.DropDownBuilder-2.InputType.html#C1_Web_Mvc_Fluent_DropDownBuilder_2_InputType_System_String_">InputType(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.DropDown.InputType.html#C1_Web_Mvc_DropDown_InputType">InputType</a>.
Sets the &quot;type&quot; attribute of the HTML input element hosted by the control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Fluent_DropDownBuilder_2_IsAnimated_System_Boolean_" data-uid="C1.Web.Mvc.Fluent.DropDownBuilder`2.IsAnimated(System.Boolean)">
          <a class="xref" href="C1.Web.Mvc.Fluent.DropDownBuilder-2.IsAnimated.html#C1_Web_Mvc_Fluent_DropDownBuilder_2_IsAnimated_System_Boolean_">IsAnimated(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.DropDown.IsAnimated.html#C1_Web_Mvc_DropDown_IsAnimated">IsAnimated</a>.
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_Fluent_DropDownBuilder_2_IsDroppedDown_System_Boolean_" data-uid="C1.Web.Mvc.Fluent.DropDownBuilder`2.IsDroppedDown(System.Boolean)">
          <a class="xref" href="C1.Web.Mvc.Fluent.DropDownBuilder-2.IsDroppedDown.html#C1_Web_Mvc_Fluent_DropDownBuilder_2_IsDroppedDown_System_Boolean_">IsDroppedDown(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.DropDown.IsDroppedDown.html#C1_Web_Mvc_DropDown_IsDroppedDown">IsDroppedDown</a>.
Sets a value indicating whether the drop down is currently visible.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Fluent_DropDownBuilder_2_IsReadOnly_System_Boolean_" data-uid="C1.Web.Mvc.Fluent.DropDownBuilder`2.IsReadOnly(System.Boolean)">
          <a class="xref" href="C1.Web.Mvc.Fluent.DropDownBuilder-2.IsReadOnly.html#C1_Web_Mvc_Fluent_DropDownBuilder_2_IsReadOnly_System_Boolean_">IsReadOnly(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.DropDown.IsReadOnly.html#C1_Web_Mvc_DropDown_IsReadOnly">IsReadOnly</a>.
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_Fluent_DropDownBuilder_2_IsRequired_System_Boolean_" data-uid="C1.Web.Mvc.Fluent.DropDownBuilder`2.IsRequired(System.Boolean)">
          <a class="xref" href="C1.Web.Mvc.Fluent.DropDownBuilder-2.IsRequired.html#C1_Web_Mvc_Fluent_DropDownBuilder_2_IsRequired_System_Boolean_">IsRequired(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.DropDown.IsRequired.html#C1_Web_Mvc_DropDown_IsRequired">IsRequired</a>.
Sets a value indicating whether the control value must be a non-empty string.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Fluent_DropDownBuilder_2_KeyActionDownArrow_C1_Web_Mvc_InputKeyAction_" data-uid="C1.Web.Mvc.Fluent.DropDownBuilder`2.KeyActionDownArrow(C1.Web.Mvc.InputKeyAction)">
          <a class="xref" href="C1.Web.Mvc.Fluent.DropDownBuilder-2.KeyActionDownArrow.html#C1_Web_Mvc_Fluent_DropDownBuilder_2_KeyActionDownArrow_C1_Web_Mvc_InputKeyAction_">KeyActionDownArrow(InputKeyAction)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.DropDown.KeyActionDownArrow.html#C1_Web_Mvc_DropDown_KeyActionDownArrow">KeyActionDownArrow</a>.
Sets the action to perform when the DOWN ARROW key is pressed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Fluent_DropDownBuilder_2_KeyActionUpArrow_C1_Web_Mvc_InputKeyAction_" data-uid="C1.Web.Mvc.Fluent.DropDownBuilder`2.KeyActionUpArrow(C1.Web.Mvc.InputKeyAction)">
          <a class="xref" href="C1.Web.Mvc.Fluent.DropDownBuilder-2.KeyActionUpArrow.html#C1_Web_Mvc_Fluent_DropDownBuilder_2_KeyActionUpArrow_C1_Web_Mvc_InputKeyAction_">KeyActionUpArrow(InputKeyAction)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.DropDown.KeyActionUpArrow.html#C1_Web_Mvc_DropDown_KeyActionUpArrow">KeyActionUpArrow</a>.
Sets the action to perform when the UP ARROW key is pressed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Fluent_DropDownBuilder_2_OnClientIsDroppedDownChanged_System_String_" data-uid="C1.Web.Mvc.Fluent.DropDownBuilder`2.OnClientIsDroppedDownChanged(System.String)">
          <a class="xref" href="C1.Web.Mvc.Fluent.DropDownBuilder-2.OnClientIsDroppedDownChanged.html#C1_Web_Mvc_Fluent_DropDownBuilder_2_OnClientIsDroppedDownChanged_System_String_">OnClientIsDroppedDownChanged(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates the <a class="xref" href="C1.Web.Mvc.DropDown.OnClientIsDroppedDownChanged.html#C1_Web_Mvc_DropDown_OnClientIsDroppedDownChanged">OnClientIsDroppedDownChanged</a> client event.
Occurs after the drop down is shown or hidden.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Fluent_DropDownBuilder_2_OnClientIsDroppedDownChanging_System_String_" data-uid="C1.Web.Mvc.Fluent.DropDownBuilder`2.OnClientIsDroppedDownChanging(System.String)">
          <a class="xref" href="C1.Web.Mvc.Fluent.DropDownBuilder-2.OnClientIsDroppedDownChanging.html#C1_Web_Mvc_Fluent_DropDownBuilder_2_OnClientIsDroppedDownChanging_System_String_">OnClientIsDroppedDownChanging(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates the <a class="xref" href="C1.Web.Mvc.DropDown.OnClientIsDroppedDownChanging.html#C1_Web_Mvc_DropDown_OnClientIsDroppedDownChanging">OnClientIsDroppedDownChanging</a> client event.
Occurs before the drop down is shown or hidden.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Fluent_DropDownBuilder_2_OnClientTextChanged_System_String_" data-uid="C1.Web.Mvc.Fluent.DropDownBuilder`2.OnClientTextChanged(System.String)">
          <a class="xref" href="C1.Web.Mvc.Fluent.DropDownBuilder-2.OnClientTextChanged.html#C1_Web_Mvc_Fluent_DropDownBuilder_2_OnClientTextChanged_System_String_">OnClientTextChanged(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates the <a class="xref" href="C1.Web.Mvc.DropDown.OnClientTextChanged.html#C1_Web_Mvc_DropDown_OnClientTextChanged">OnClientTextChanged</a> client event.
Occurs when the value of the Text property changes.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Fluent_DropDownBuilder_2_Placeholder_System_String_" data-uid="C1.Web.Mvc.Fluent.DropDownBuilder`2.Placeholder(System.String)">
          <a class="xref" href="C1.Web.Mvc.Fluent.DropDownBuilder-2.Placeholder.html#C1_Web_Mvc_Fluent_DropDownBuilder_2_Placeholder_System_String_">Placeholder(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.DropDown.Placeholder.html#C1_Web_Mvc_DropDown_Placeholder">Placeholder</a>.
Sets the string shown as a hint when the control is empty.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Fluent_DropDownBuilder_2_ShowDropDownButton_System_Boolean_" data-uid="C1.Web.Mvc.Fluent.DropDownBuilder`2.ShowDropDownButton(System.Boolean)">
          <a class="xref" href="C1.Web.Mvc.Fluent.DropDownBuilder-2.ShowDropDownButton.html#C1_Web_Mvc_Fluent_DropDownBuilder_2_ShowDropDownButton_System_Boolean_">ShowDropDownButton(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.DropDown.ShowDropDownButton.html#C1_Web_Mvc_DropDown_ShowDropDownButton">ShowDropDownButton</a>.
Sets a value indicating whether the control should display a drop-down button.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Fluent_DropDownBuilder_2_Text_System_String_" data-uid="C1.Web.Mvc.Fluent.DropDownBuilder`2.Text(System.String)">
          <a class="xref" href="C1.Web.Mvc.Fluent.DropDownBuilder-2.Text.html#C1_Web_Mvc_Fluent_DropDownBuilder_2_Text_System_String_">Text(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.DropDown.Text.html#C1_Web_Mvc_DropDown_Text">Text</a>.
Sets the text shown on the control.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
