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

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Web_Mvc_Fluent_ControlBuilder_2" data-uid="C1.Web.Mvc.Fluent.ControlBuilder`2" class="text-break">ControlBuilder&lt;TControl, TBuilder&gt; Class
</h1>
  <div class="markdown level0 summary"><p>Defines a builder to configurate <a class="xref" href="C1.Web.Mvc.Control.html">Control</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"><span class="xref">ControlBuilder&lt;TControl, TBuilder&gt;</span></div>
      <div class="level5"><a class="xref" href="C1.Web.Mvc.Fluent.AccordionBuilder.html">AccordionBuilder</a></div>
      <div class="level5"><a class="xref" href="C1.Web.Mvc.Fluent.BarcodeBaseBuilder-2.html">BarcodeBaseBuilder&lt;TControl, TBuilder&gt;</a></div>
      <div class="level5"><a class="xref" href="C1.Web.Mvc.Fluent.CollectionViewNavigatorBuilder.html">CollectionViewNavigatorBuilder</a></div>
      <div class="level5"><a class="xref" href="C1.Web.Mvc.Fluent.DashboardLayoutBuilder.html">DashboardLayoutBuilder</a></div>
      <div class="level5"><a class="xref" href="C1.Web.Mvc.Fluent.FileManagerBuilder.html">FileManagerBuilder</a></div>
      <div class="level5"><a class="xref" href="C1.Web.Mvc.Fluent.FlexGridSearchBuilder.html">FlexGridSearchBuilder</a></div>
      <div class="level5"><a class="xref" href="C1.Web.Mvc.Fluent.GaugeBuilder-2.html">GaugeBuilder&lt;TControl, TBuilder&gt;</a></div>
      <div class="level5"><a class="xref" href="C1.Web.Mvc.Fluent.InputBaseBuilder-2.html">InputBaseBuilder&lt;TControl, TBuilder&gt;</a></div>
      <div class="level5"><a class="xref" href="C1.Web.Mvc.Fluent.ItemsBoundControlBuilder-3.html">ItemsBoundControlBuilder&lt;T, TControl, TBuilder&gt;</a></div>
      <div class="level5"><a class="xref" href="C1.Web.Mvc.Fluent.PagerBuilder.html">PagerBuilder</a></div>
      <div class="level5"><a class="xref" href="C1.Web.Mvc.Fluent.PopupBuilder.html">PopupBuilder</a></div>
      <div class="level5"><a class="xref" href="C1.Web.Mvc.Fluent.TabPanelBuilder.html">TabPanelBuilder</a></div>
      <div class="level5"><a class="xref" href="C1.Web.Mvc.Fluent.TreeViewBuilder.html">TreeViewBuilder</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_ControlBuilder_2_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public abstract class ControlBuilder&lt;TControl, TBuilder&gt; : ComponentBuilder&lt;TControl, TBuilder&gt;, IHtmlContent where TControl : Control where TBuilder : ControlBuilder&lt;TControl, TBuilder&gt;</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public MustInherit Class ControlBuilder(Of TControl As Control, TBuilder As ControlBuilder(Of TControl, TBuilder))
    Inherits ComponentBuilder(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_ControlBuilder_2__ctor__0_" data-uid="C1.Web.Mvc.Fluent.ControlBuilder`2.#ctor(`0)">
          <a class="xref" href="C1.Web.Mvc.Fluent.ControlBuilder-2.-ctor.html#C1_Web_Mvc_Fluent_ControlBuilder_2__ctor__0_">ControlBuilder(TControl)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates one <a class="xref" href="C1.Web.Mvc.Fluent.ControlBuilder-2.html">ControlBuilder&lt;TControl, TBuilder&gt;</a> instance to configurate <code class="paramref">control</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_ControlBuilder_2_CssClass_System_String_" data-uid="C1.Web.Mvc.Fluent.ControlBuilder`2.CssClass(System.String)">
          <a class="xref" href="C1.Web.Mvc.Fluent.ControlBuilder-2.CssClass.html#C1_Web_Mvc_Fluent_ControlBuilder_2_CssClass_System_String_">CssClass(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.Control.CssClass.html#C1_Web_Mvc_Control_CssClass">CssClass</a>.
Sets the css class of the control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Fluent_ControlBuilder_2_CssStyle_System_String_System_String_" data-uid="C1.Web.Mvc.Fluent.ControlBuilder`2.CssStyle(System.String,System.String)">
          <a class="xref" href="C1.Web.Mvc.Fluent.ControlBuilder-2.CssStyle.html#C1_Web_Mvc_Fluent_ControlBuilder_2_CssStyle_System_String_System_String_">CssStyle(string, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.Control.CssStyles.html#C1_Web_Mvc_Control_CssStyles">CssStyles</a>.
Sets the CSS style applied in the control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Fluent_ControlBuilder_2_CssStyles_System_Collections_Generic_IDictionary_System_String_System_String__" data-uid="C1.Web.Mvc.Fluent.ControlBuilder`2.CssStyles(System.Collections.Generic.IDictionary{System.String,System.String})">
          <a class="xref" href="C1.Web.Mvc.Fluent.ControlBuilder-2.CssStyles.html#C1_Web_Mvc_Fluent_ControlBuilder_2_CssStyles_System_Collections_Generic_IDictionary_System_String_System_String__">CssStyles(IDictionary&lt;string, string&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.Control.CssStyles.html#C1_Web_Mvc_Control_CssStyles">CssStyles</a>.
Sets the CSS style applied in the control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Fluent_ControlBuilder_2_Height_System_Int32_" data-uid="C1.Web.Mvc.Fluent.ControlBuilder`2.Height(System.Int32)">
          <a class="xref" href="C1.Web.Mvc.Fluent.ControlBuilder-2.Height.html#C1_Web_Mvc_Fluent_ControlBuilder_2_Height_System_Int32_">Height(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the height of the control in pixel.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Fluent_ControlBuilder_2_Height_System_String_" data-uid="C1.Web.Mvc.Fluent.ControlBuilder`2.Height(System.String)">
          <a class="xref" href="C1.Web.Mvc.Fluent.ControlBuilder-2.Height.html#C1_Web_Mvc_Fluent_ControlBuilder_2_Height_System_String_">Height(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.Control.Height.html#C1_Web_Mvc_Control_Height">Height</a>.
Sets the height of the control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Fluent_ControlBuilder_2_HtmlAttribute_System_String_System_String_" data-uid="C1.Web.Mvc.Fluent.ControlBuilder`2.HtmlAttribute(System.String,System.String)">
          <a class="xref" href="C1.Web.Mvc.Fluent.ControlBuilder-2.HtmlAttribute.html#C1_Web_Mvc_Fluent_ControlBuilder_2_HtmlAttribute_System_String_System_String_">HtmlAttribute(string, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.Control.HtmlAttributes.html#C1_Web_Mvc_Control_HtmlAttributes">HtmlAttributes</a>.
Sets the HTML attributes.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Fluent_ControlBuilder_2_HtmlAttributes_System_Collections_Generic_IDictionary_System_String_System_Object__" data-uid="C1.Web.Mvc.Fluent.ControlBuilder`2.HtmlAttributes(System.Collections.Generic.IDictionary{System.String,System.Object})">
          <a class="xref" href="C1.Web.Mvc.Fluent.ControlBuilder-2.HtmlAttributes.html#C1_Web_Mvc_Fluent_ControlBuilder_2_HtmlAttributes_System_Collections_Generic_IDictionary_System_String_System_Object__">HtmlAttributes(IDictionary&lt;string, object&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.Control.HtmlAttributes.html#C1_Web_Mvc_Control_HtmlAttributes">HtmlAttributes</a>.
Sets the HTML attributes.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Fluent_ControlBuilder_2_HtmlAttributes_System_Object_" data-uid="C1.Web.Mvc.Fluent.ControlBuilder`2.HtmlAttributes(System.Object)">
          <a class="xref" href="C1.Web.Mvc.Fluent.ControlBuilder-2.HtmlAttributes.html#C1_Web_Mvc_Fluent_ControlBuilder_2_HtmlAttributes_System_Object_">HtmlAttributes(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.Control.HtmlAttributes.html#C1_Web_Mvc_Control_HtmlAttributes">HtmlAttributes</a>.
Sets the HTML attributes.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Fluent_ControlBuilder_2_Id_System_String_" data-uid="C1.Web.Mvc.Fluent.ControlBuilder`2.Id(System.String)">
          <a class="xref" href="C1.Web.Mvc.Fluent.ControlBuilder-2.Id.html#C1_Web_Mvc_Fluent_ControlBuilder_2_Id_System_String_">Id(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.Component.Id.html#C1_Web_Mvc_Component_Id">Id</a>.
Sets the id of the control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Fluent_ControlBuilder_2_IsDisabled_System_Boolean_" data-uid="C1.Web.Mvc.Fluent.ControlBuilder`2.IsDisabled(System.Boolean)">
          <a class="xref" href="C1.Web.Mvc.Fluent.ControlBuilder-2.IsDisabled.html#C1_Web_Mvc_Fluent_ControlBuilder_2_IsDisabled_System_Boolean_">IsDisabled(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.Control.IsDisabled.html#C1_Web_Mvc_Control_IsDisabled">IsDisabled</a>.
Sets a value that determines whether the control is disabled.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Fluent_ControlBuilder_2_OnClientGotFocus_System_String_" data-uid="C1.Web.Mvc.Fluent.ControlBuilder`2.OnClientGotFocus(System.String)">
          <a class="xref" href="C1.Web.Mvc.Fluent.ControlBuilder-2.OnClientGotFocus.html#C1_Web_Mvc_Fluent_ControlBuilder_2_OnClientGotFocus_System_String_">OnClientGotFocus(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates the <a class="xref" href="C1.Web.Mvc.Control.OnClientGotFocus.html#C1_Web_Mvc_Control_OnClientGotFocus">OnClientGotFocus</a> client event.
Occurs when the control gets the focus.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Fluent_ControlBuilder_2_OnClientLostFocus_System_String_" data-uid="C1.Web.Mvc.Fluent.ControlBuilder`2.OnClientLostFocus(System.String)">
          <a class="xref" href="C1.Web.Mvc.Fluent.ControlBuilder-2.OnClientLostFocus.html#C1_Web_Mvc_Fluent_ControlBuilder_2_OnClientLostFocus_System_String_">OnClientLostFocus(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates the <a class="xref" href="C1.Web.Mvc.Control.OnClientLostFocus.html#C1_Web_Mvc_Control_OnClientLostFocus">OnClientLostFocus</a> client event.
Occurs when the control loses the focus.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Fluent_ControlBuilder_2_OnClientRefreshed_System_String_" data-uid="C1.Web.Mvc.Fluent.ControlBuilder`2.OnClientRefreshed(System.String)">
          <a class="xref" href="C1.Web.Mvc.Fluent.ControlBuilder-2.OnClientRefreshed.html#C1_Web_Mvc_Fluent_ControlBuilder_2_OnClientRefreshed_System_String_">OnClientRefreshed(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates the <a class="xref" href="C1.Web.Mvc.Control.OnClientRefreshed.html#C1_Web_Mvc_Control_OnClientRefreshed">OnClientRefreshed</a> client event.
Occurs after the control has refreshed its contents.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Fluent_ControlBuilder_2_OnClientRefreshing_System_String_" data-uid="C1.Web.Mvc.Fluent.ControlBuilder`2.OnClientRefreshing(System.String)">
          <a class="xref" href="C1.Web.Mvc.Fluent.ControlBuilder-2.OnClientRefreshing.html#C1_Web_Mvc_Fluent_ControlBuilder_2_OnClientRefreshing_System_String_">OnClientRefreshing(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates the <a class="xref" href="C1.Web.Mvc.Control.OnClientRefreshing.html#C1_Web_Mvc_Control_OnClientRefreshing">OnClientRefreshing</a> client event.
Occurs when the control is about to refresh its contents.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Fluent_ControlBuilder_2_TabOrder_System_Int32_" data-uid="C1.Web.Mvc.Fluent.ControlBuilder`2.TabOrder(System.Int32)">
          <a class="xref" href="C1.Web.Mvc.Fluent.ControlBuilder-2.TabOrder.html#C1_Web_Mvc_Fluent_ControlBuilder_2_TabOrder_System_Int32_">TabOrder(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.Control.TabOrder.html#C1_Web_Mvc_Control_TabOrder">TabOrder</a>.
Sets a value of the tabindex attribute associated with the control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Fluent_ControlBuilder_2_TemplateBind_System_String_System_String_" data-uid="C1.Web.Mvc.Fluent.ControlBuilder`2.TemplateBind(System.String,System.String)">
          <a class="xref" href="C1.Web.Mvc.Fluent.ControlBuilder-2.TemplateBind.html#C1_Web_Mvc_Fluent_ControlBuilder_2_TemplateBind_System_String_System_String_">TemplateBind(string, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates the <a class="xref" href="C1.Web.Mvc.Control.TemplateBindings.html#C1_Web_Mvc_Control_TemplateBindings">TemplateBindings</a> client event.
Sets the collection of the template bindings.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Fluent_ControlBuilder_2_ToTemplate" data-uid="C1.Web.Mvc.Fluent.ControlBuilder`2.ToTemplate">
          <a class="xref" href="C1.Web.Mvc.Fluent.ControlBuilder-2.ToTemplate.html#C1_Web_Mvc_Fluent_ControlBuilder_2_ToTemplate">ToTemplate()</a>
        </td>
        <td class="markdown level1 summary"><p>Transfer to the template mode.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Fluent_ControlBuilder_2_Width_System_Int32_" data-uid="C1.Web.Mvc.Fluent.ControlBuilder`2.Width(System.Int32)">
          <a class="xref" href="C1.Web.Mvc.Fluent.ControlBuilder-2.Width.html#C1_Web_Mvc_Fluent_ControlBuilder_2_Width_System_Int32_">Width(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the width of the control in pixel.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Fluent_ControlBuilder_2_Width_System_String_" data-uid="C1.Web.Mvc.Fluent.ControlBuilder`2.Width(System.String)">
          <a class="xref" href="C1.Web.Mvc.Fluent.ControlBuilder-2.Width.html#C1_Web_Mvc_Fluent_ControlBuilder_2_Width_System_String_">Width(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.Control.Width.html#C1_Web_Mvc_Control_Width">Width</a>.
Sets the width of the control.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
