# C1.Web.Mvc.InputColor

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Web_Mvc_InputColor" data-uid="C1.Web.Mvc.InputColor" class="text-break">InputColor Class
</h1>
  <div class="markdown level0 summary"><p>The InputColor control allows users to select colors by typing in HTML-supported color strings, or to pick colors from a drop-down that shows a ColorPicker control.</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"><a class="xref" href="C1.Web.Mvc.DropDown.html">DropDown</a></div>
    <div class="level6"><span class="xref">InputColor</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><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.Web.Mvc.dll</h6>
  <h5 id="C1_Web_Mvc_InputColor_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class InputColor : DropDown, IHtmlString, ITemplate, IDropDown</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class InputColor
    Inherits DropDown
    Implements IHtmlString, ITemplate, IDropDown</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_InputColor__ctor_System_Web_Mvc_HtmlHelper_System_String_" data-uid="C1.Web.Mvc.InputColor.#ctor(System.Web.Mvc.HtmlHelper,System.String)">
          <a class="xref" href="C1.Web.Mvc.InputColor.-ctor.html#C1_Web_Mvc_InputColor__ctor_System_Web_Mvc_HtmlHelper_System_String_">InputColor(HtmlHelper, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates one <a class="xref" href="C1.Web.Mvc.InputColor.html">InputColor</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_InputColor_IsRequired" data-uid="C1.Web.Mvc.InputColor.IsRequired">
          <a class="xref" href="C1.Web.Mvc.InputColor.IsRequired.html#C1_Web_Mvc_InputColor_IsRequired">IsRequired</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or 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_InputColor_OnClientInvalidInput" data-uid="C1.Web.Mvc.InputColor.OnClientInvalidInput">
          <a class="xref" href="C1.Web.Mvc.InputColor.OnClientInvalidInput.html#C1_Web_Mvc_InputColor_OnClientInvalidInput">OnClientInvalidInput</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when invalid input is detected.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_InputColor_OnClientValueChanged" data-uid="C1.Web.Mvc.InputColor.OnClientValueChanged">
          <a class="xref" href="C1.Web.Mvc.InputColor.OnClientValueChanged.html#C1_Web_Mvc_InputColor_OnClientValueChanged">OnClientValueChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs after a new color is selected.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_InputColor_Palette" data-uid="C1.Web.Mvc.InputColor.Palette">
          <a class="xref" href="C1.Web.Mvc.InputColor.Palette.html#C1_Web_Mvc_InputColor_Palette">Palette</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets an array that contains the colors in the palette.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_InputColor_ShowAlphaChannel" data-uid="C1.Web.Mvc.InputColor.ShowAlphaChannel">
          <a class="xref" href="C1.Web.Mvc.InputColor.ShowAlphaChannel.html#C1_Web_Mvc_InputColor_ShowAlphaChannel">ShowAlphaChannel</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or 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_InputColor_ShowColorString" data-uid="C1.Web.Mvc.InputColor.ShowColorString">
          <a class="xref" href="C1.Web.Mvc.InputColor.ShowColorString.html#C1_Web_Mvc_InputColor_ShowColorString">ShowColorString</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the ColorPicker shows a string representation of the current color.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_InputColor_Value" data-uid="C1.Web.Mvc.InputColor.Value">
          <a class="xref" href="C1.Web.Mvc.InputColor.Value.html#C1_Web_Mvc_InputColor_Value">Value</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or 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>
