# C1.Web.Mvc.Fluent.InputColorBuilder

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Web_Mvc_Fluent_InputColorBuilder" data-uid="C1.Web.Mvc.Fluent.InputColorBuilder" class="text-break">InputColorBuilder Class
</h1>
  <div class="markdown level0 summary"><p>Defines a builder to configurate <a class="xref" href="C1.Web.Mvc.InputColor.html">InputColor</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;<a class="xref" href="C1.Web.Mvc.InputColor.html">InputColor</a>, <a class="xref" href="C1.Web.Mvc.Fluent.InputColorBuilder.html">InputColorBuilder</a>&gt;</div>
    <div class="level3"><a class="xref" href="C1.Web.Mvc.Fluent.ComponentBuilder-2.html">ComponentBuilder</a>&lt;<a class="xref" href="C1.Web.Mvc.InputColor.html">InputColor</a>, <a class="xref" href="C1.Web.Mvc.Fluent.InputColorBuilder.html">InputColorBuilder</a>&gt;</div>
    <div class="level4"><a class="xref" href="C1.Web.Mvc.Fluent.ControlBuilder-2.html">ControlBuilder</a>&lt;<a class="xref" href="C1.Web.Mvc.InputColor.html">InputColor</a>, <a class="xref" href="C1.Web.Mvc.Fluent.InputColorBuilder.html">InputColorBuilder</a>&gt;</div>
    <div class="level5"><a class="xref" href="C1.Web.Mvc.Fluent.InputBaseBuilder-2.html">InputBaseBuilder</a>&lt;<a class="xref" href="C1.Web.Mvc.InputColor.html">InputColor</a>, <a class="xref" href="C1.Web.Mvc.Fluent.InputColorBuilder.html">InputColorBuilder</a>&gt;</div>
    <div class="level6"><a class="xref" href="C1.Web.Mvc.Fluent.FormInputBaseBuilder-2.html">FormInputBaseBuilder</a>&lt;<a class="xref" href="C1.Web.Mvc.InputColor.html">InputColor</a>, <a class="xref" href="C1.Web.Mvc.Fluent.InputColorBuilder.html">InputColorBuilder</a>&gt;</div>
    <div class="level7"><a class="xref" href="C1.Web.Mvc.Fluent.DropDownBuilder-2.html">DropDownBuilder</a>&lt;<a class="xref" href="C1.Web.Mvc.InputColor.html">InputColor</a>, <a class="xref" href="C1.Web.Mvc.Fluent.InputColorBuilder.html">InputColorBuilder</a>&gt;</div>
    <div class="level8"><span class="xref">InputColorBuilder</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.web.ihtmlstring">IHtmlString</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.Web.Mvc.dll</h6>
  <h5 id="C1_Web_Mvc_Fluent_InputColorBuilder_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class InputColorBuilder : DropDownBuilder&lt;InputColor, InputColorBuilder&gt;, IHtmlString</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class InputColorBuilder
    Inherits DropDownBuilder(Of InputColor, InputColorBuilder)
    Implements IHtmlString</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_Web_Mvc_Fluent_InputColorBuilder__ctor_C1_Web_Mvc_InputColor_" data-uid="C1.Web.Mvc.Fluent.InputColorBuilder.#ctor(C1.Web.Mvc.InputColor)">
          <a class="xref" href="C1.Web.Mvc.Fluent.InputColorBuilder.-ctor.html#C1_Web_Mvc_Fluent_InputColorBuilder__ctor_C1_Web_Mvc_InputColor_">InputColorBuilder(InputColor)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates one <a class="xref" href="C1.Web.Mvc.Fluent.InputColorBuilder.html">InputColorBuilder</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_InputColorBuilder_IsRequired_System_Boolean_" data-uid="C1.Web.Mvc.Fluent.InputColorBuilder.IsRequired(System.Boolean)">
          <a class="xref" href="C1.Web.Mvc.Fluent.InputColorBuilder.IsRequired.html#C1_Web_Mvc_Fluent_InputColorBuilder_IsRequired_System_Boolean_">IsRequired(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.InputColor.IsRequired.html#C1_Web_Mvc_InputColor_IsRequired">IsRequired</a>.
Sets a value indicating whether the control value must be a color or whether it can be set to null (by deleting the content of the control).</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Fluent_InputColorBuilder_OnClientInvalidInput_System_String_" data-uid="C1.Web.Mvc.Fluent.InputColorBuilder.OnClientInvalidInput(System.String)">
          <a class="xref" href="C1.Web.Mvc.Fluent.InputColorBuilder.OnClientInvalidInput.html#C1_Web_Mvc_Fluent_InputColorBuilder_OnClientInvalidInput_System_String_">OnClientInvalidInput(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates the <a class="xref" href="C1.Web.Mvc.InputColor.OnClientInvalidInput.html#C1_Web_Mvc_InputColor_OnClientInvalidInput">OnClientInvalidInput</a> client event.
Occurs when invalid input is detected.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Fluent_InputColorBuilder_OnClientValueChanged_System_String_" data-uid="C1.Web.Mvc.Fluent.InputColorBuilder.OnClientValueChanged(System.String)">
          <a class="xref" href="C1.Web.Mvc.Fluent.InputColorBuilder.OnClientValueChanged.html#C1_Web_Mvc_Fluent_InputColorBuilder_OnClientValueChanged_System_String_">OnClientValueChanged(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates the <a class="xref" href="C1.Web.Mvc.InputColor.OnClientValueChanged.html#C1_Web_Mvc_InputColor_OnClientValueChanged">OnClientValueChanged</a> client event.
Occurs after a new color is selected.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Fluent_InputColorBuilder_Palette_System_Collections_Generic_List_System_Drawing_Color__" data-uid="C1.Web.Mvc.Fluent.InputColorBuilder.Palette(System.Collections.Generic.List{System.Drawing.Color})">
          <a class="xref" href="C1.Web.Mvc.Fluent.InputColorBuilder.Palette.html#C1_Web_Mvc_Fluent_InputColorBuilder_Palette_System_Collections_Generic_List_System_Drawing_Color__">Palette(List&lt;Color&gt;)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.InputColor.Palette.html#C1_Web_Mvc_InputColor_Palette">Palette</a>.
Sets an array that contains the colors in the palette.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Fluent_InputColorBuilder_Palette_System_Drawing_Color___" data-uid="C1.Web.Mvc.Fluent.InputColorBuilder.Palette(System.Drawing.Color[])">
          <a class="xref" href="C1.Web.Mvc.Fluent.InputColorBuilder.Palette.html#C1_Web_Mvc_Fluent_InputColorBuilder_Palette_System_Drawing_Color___">Palette(params Color[])</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.InputColor.Palette.html#C1_Web_Mvc_InputColor_Palette">Palette</a>.
Sets an array that contains the colors in the palette.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Fluent_InputColorBuilder_ShowAlphaChannel_System_Boolean_" data-uid="C1.Web.Mvc.Fluent.InputColorBuilder.ShowAlphaChannel(System.Boolean)">
          <a class="xref" href="C1.Web.Mvc.Fluent.InputColorBuilder.ShowAlphaChannel.html#C1_Web_Mvc_Fluent_InputColorBuilder_ShowAlphaChannel_System_Boolean_">ShowAlphaChannel(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.InputColor.ShowAlphaChannel.html#C1_Web_Mvc_InputColor_ShowAlphaChannel">ShowAlphaChannel</a>.
Sets a value indicating whether the ColorPicker allows users to edit the color's alpha channel (transparency).</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Fluent_InputColorBuilder_ShowColorString_System_Boolean_" data-uid="C1.Web.Mvc.Fluent.InputColorBuilder.ShowColorString(System.Boolean)">
          <a class="xref" href="C1.Web.Mvc.Fluent.InputColorBuilder.ShowColorString.html#C1_Web_Mvc_Fluent_InputColorBuilder_ShowColorString_System_Boolean_">ShowColorString(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Configurates <a class="xref" href="C1.Web.Mvc.InputColor.ShowColorString.html#C1_Web_Mvc_InputColor_ShowColorString">ShowColorString</a>.
Sets a value indicating whether the ColorPicker shows a string representation of the current color.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Fluent_InputColorBuilder_Value_System_Nullable_System_Drawing_Color__" data-uid="C1.Web.Mvc.Fluent.InputColorBuilder.Value(System.Nullable{System.Drawing.Color})">
          <a class="xref" href="C1.Web.Mvc.Fluent.InputColorBuilder.Value.html#C1_Web_Mvc_Fluent_InputColorBuilder_Value_System_Nullable_System_Drawing_Color__">Value(Color?)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the current color.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="extensionmethods">Extension Methods</h3>
  <div>
      <a class="xref" href="C1.Web.Mvc.Fluent.IHtmlStringExtension.ToTemplate.html#C1_Web_Mvc_Fluent_IHtmlStringExtension_ToTemplate_System_Web_IHtmlString_">IHtmlStringExtension.ToTemplate(IHtmlString)</a>
  </div>

</div>
