# C1.Win.C1Input.C1ColorPicker

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_C1Input_C1ColorPicker" data-uid="C1.Win.C1Input.C1ColorPicker" class="text-break">C1ColorPicker Class
</h1>
  <div class="markdown level0 summary"><p>Represents a Windows color picker control supporting additional visual styles.</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="https://learn.microsoft.com/dotnet/api/system.marshalbyrefobject">MarshalByRefObject</a></div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.component">Component</a></div>
    <div class="level3"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.control">Control</a></div>
    <div class="level4"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.textboxbase">TextBoxBase</a></div>
    <div class="level5"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.textbox">TextBox</a></div>
    <div class="level6"><a class="xref" href="C1.Win.C1Input.C1TextBox.html">C1TextBox</a></div>
    <div class="level7"><a class="xref" href="C1.Win.C1Input.C1DropDownControl.html">C1DropDownControl</a></div>
    <div class="level8"><a class="xref" href="C1.Win.C1Input.C1BasePicker.html">C1BasePicker</a></div>
    <div class="level9"><span class="xref">C1ColorPicker</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.idroptarget">IDropTarget</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.isynchronizeinvoke">ISynchronizeInvoke</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.iwin32window">IWin32Window</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.ibindablecomponent">IBindableComponent</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.icomponent">IComponent</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.isupportinitialize">ISupportInitialize</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.icustomtypedescriptor">ICustomTypeDescriptor</a></div>
    <div><span class="xref">IEmbeddedEditor</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.C1Input.html">C1.Win.C1Input</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.C1Input.4.8.dll</h6>
  <h5 id="C1_Win_C1Input_C1ColorPicker_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[ToolboxBitmap(typeof(C1ColorPicker), &quot;C1ColorPicker.png&quot;)]
public class C1ColorPicker : C1BasePicker, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, ISupportInitialize, ICustomTypeDescriptor, IEmbeddedEditor</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;ToolboxBitmap(GetType(C1ColorPicker), &quot;C1ColorPicker.png&quot;)&gt;
Public Class C1ColorPicker
    Inherits C1BasePicker
    Implements IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, ISupportInitialize, ICustomTypeDescriptor, IEmbeddedEditor</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_Win_C1Input_C1ColorPicker__ctor" data-uid="C1.Win.C1Input.C1ColorPicker.#ctor">
          <a class="xref" href="C1.Win.C1Input.C1ColorPicker.-ctor.html#C1_Win_C1Input_C1ColorPicker__ctor">C1ColorPicker()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the C1ColorPicker class.</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_Win_C1Input_C1ColorPicker_AllowEmpty" data-uid="C1.Win.C1Input.C1ColorPicker.AllowEmpty">
          <a class="xref" href="C1.Win.C1Input.C1ColorPicker.AllowEmpty.html#C1_Win_C1Input_C1ColorPicker_AllowEmpty">AllowEmpty</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the empty color can de selected.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_C1ColorPicker_AllowTransparent" data-uid="C1.Win.C1Input.C1ColorPicker.AllowTransparent">
          <a class="xref" href="C1.Win.C1Input.C1ColorPicker.AllowTransparent.html#C1_Win_C1Input_C1ColorPicker_AllowTransparent">AllowTransparent</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the transparent color can de selected.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_C1ColorPicker_Color" data-uid="C1.Win.C1Input.C1ColorPicker.Color">
          <a class="xref" href="C1.Win.C1Input.C1ColorPicker.Color.html#C1_Win_C1Input_C1ColorPicker_Color">Color</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the current color.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_C1ColorPicker_DefaultDropDownFormClassName" data-uid="C1.Win.C1Input.C1ColorPicker.DefaultDropDownFormClassName">
          <a class="xref" href="C1.Win.C1Input.C1ColorPicker.DefaultDropDownFormClassName.html#C1_Win_C1Input_C1ColorPicker_DefaultDropDownFormClassName">DefaultDropDownFormClassName</a>
        </td>
        <td class="markdown level1 summary"><p>Specifies form class that is used by default as the dropdown for the control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_C1ColorPicker_DefaultThemeRootPath" data-uid="C1.Win.C1Input.C1ColorPicker.DefaultThemeRootPath">
          <a class="xref" href="C1.Win.C1Input.C1ColorPicker.DefaultThemeRootPath.html#C1_Win_C1Input_C1ColorPicker_DefaultThemeRootPath">DefaultThemeRootPath</a>
        </td>
        <td class="markdown level1 summary"><p>Default path for the control in xml theme file.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_C1ColorPicker_EmptyColorCaption" data-uid="C1.Win.C1Input.C1ColorPicker.EmptyColorCaption">
          <a class="xref" href="C1.Win.C1Input.C1ColorPicker.EmptyColorCaption.html#C1_Win_C1Input_C1ColorPicker_EmptyColorCaption">EmptyColorCaption</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a caption for the empty color.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_C1ColorPicker_SelectionView" data-uid="C1.Win.C1Input.C1ColorPicker.SelectionView">
          <a class="xref" href="C1.Win.C1Input.C1ColorPicker.SelectionView.html#C1_Win_C1Input_C1ColorPicker_SelectionView">SelectionView</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the item's selection view.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_C1ColorPicker_ShowImage" data-uid="C1.Win.C1Input.C1ColorPicker.ShowImage">
          <a class="xref" href="C1.Win.C1Input.C1ColorPicker.ShowImage.html#C1_Win_C1Input_C1ColorPicker_ShowImage">ShowImage</a>
        </td>
        <td class="markdown level1 summary"><p>Determines if image should be shown.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_C1ColorPicker_Text" data-uid="C1.Win.C1Input.C1ColorPicker.Text">
          <a class="xref" href="C1.Win.C1Input.C1ColorPicker.Text.html#C1_Win_C1Input_C1ColorPicker_Text">Text</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_C1ColorPicker_Value" data-uid="C1.Win.C1Input.C1ColorPicker.Value">
          <a class="xref" href="C1.Win.C1Input.C1ColorPicker.Value.html#C1_Win_C1Input_C1ColorPicker_Value">Value</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the current color representation of the visual information contained in the control.</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_Win_C1Input_C1ColorPicker_DrawImage_System_Drawing_Graphics_System_Drawing_Rectangle_" data-uid="C1.Win.C1Input.C1ColorPicker.DrawImage(System.Drawing.Graphics,System.Drawing.Rectangle)">
          <a class="xref" href="C1.Win.C1Input.C1ColorPicker.DrawImage.html#C1_Win_C1Input_C1ColorPicker_DrawImage_System_Drawing_Graphics_System_Drawing_Rectangle_">DrawImage(Graphics, Rectangle)</a>
        </td>
        <td class="markdown level1 summary"><p>Draws image in the control.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_C1ColorPicker_GetImageSize" data-uid="C1.Win.C1Input.C1ColorPicker.GetImageSize">
          <a class="xref" href="C1.Win.C1Input.C1ColorPicker.GetImageSize.html#C1_Win_C1Input_C1ColorPicker_GetImageSize">GetImageSize()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns image size.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_C1ColorPicker_GetPreferredSize_System_Drawing_Size_" data-uid="C1.Win.C1Input.C1ColorPicker.GetPreferredSize(System.Drawing.Size)">
          <a class="xref" href="C1.Win.C1Input.C1ColorPicker.GetPreferredSize.html#C1_Win_C1Input_C1ColorPicker_GetPreferredSize_System_Drawing_Size_">GetPreferredSize(Size)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_C1ColorPicker_OnColorChanged_System_EventArgs_" data-uid="C1.Win.C1Input.C1ColorPicker.OnColorChanged(System.EventArgs)">
          <a class="xref" href="C1.Win.C1Input.C1ColorPicker.OnColorChanged.html#C1_Win_C1Input_C1ColorPicker_OnColorChanged_System_EventArgs_">OnColorChanged(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_C1ColorPicker_OnKeyDown_System_Windows_Forms_KeyEventArgs_" data-uid="C1.Win.C1Input.C1ColorPicker.OnKeyDown(System.Windows.Forms.KeyEventArgs)">
          <a class="xref" href="C1.Win.C1Input.C1ColorPicker.OnKeyDown.html#C1_Win_C1Input_C1ColorPicker_OnKeyDown_System_Windows_Forms_KeyEventArgs_">OnKeyDown(KeyEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>This method is for internal use only.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_C1ColorPicker_OnModalButtonClick_System_EventArgs_" data-uid="C1.Win.C1Input.C1ColorPicker.OnModalButtonClick(System.EventArgs)">
          <a class="xref" href="C1.Win.C1Input.C1ColorPicker.OnModalButtonClick.html#C1_Win_C1Input_C1ColorPicker_OnModalButtonClick_System_EventArgs_">OnModalButtonClick(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>This method is for internal use only.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_C1ColorPicker_OnValueChanged_System_EventArgs_" data-uid="C1.Win.C1Input.C1ColorPicker.OnValueChanged(System.EventArgs)">
          <a class="xref" href="C1.Win.C1Input.C1ColorPicker.OnValueChanged.html#C1_Win_C1Input_C1ColorPicker_OnValueChanged_System_EventArgs_">OnValueChanged(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>This method is for internal use only.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_C1ColorPicker_ResetColor" data-uid="C1.Win.C1Input.C1ColorPicker.ResetColor">
          <a class="xref" href="C1.Win.C1Input.C1ColorPicker.ResetColor.html#C1_Win_C1Input_C1ColorPicker_ResetColor">ResetColor()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_C1ColorPicker_TextToValue_C1_Win_C1Input_C1BasePicker_TextToValueArgs__" data-uid="C1.Win.C1Input.C1ColorPicker.TextToValue(C1.Win.C1Input.C1BasePicker.TextToValueArgs@)">
          <a class="xref" href="C1.Win.C1Input.C1ColorPicker.TextToValue.html#C1_Win_C1Input_C1ColorPicker_TextToValue_C1_Win_C1Input_C1BasePicker_TextToValueArgs__">TextToValue(ref TextToValueArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Should be overridden in deviced class and convert string to value.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_C1Input_C1ColorPicker_ValueToText_C1_Win_C1Input_C1BasePicker_ValueToTextArgs__" data-uid="C1.Win.C1Input.C1ColorPicker.ValueToText(C1.Win.C1Input.C1BasePicker.ValueToTextArgs@)">
          <a class="xref" href="C1.Win.C1Input.C1ColorPicker.ValueToText.html#C1_Win_C1Input_C1ColorPicker_ValueToText_C1_Win_C1Input_C1BasePicker_ValueToTextArgs__">ValueToText(ref ValueToTextArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Should be overridden in derived class and convert value to string.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="events">Events
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_C1Input_C1ColorPicker_ColorChanged" data-uid="C1.Win.C1Input.C1ColorPicker.ColorChanged">
          <a class="xref" href="C1.Win.C1Input.C1ColorPicker.ColorChanged.html">ColorChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Fires when the <a class="xref" href="C1.Win.C1Input.C1ColorPicker.Color.html#C1_Win_C1Input_C1ColorPicker_Color">Color</a> property changes.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
