# C1.Win.Ribbon.RibbonColorPicker

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_Ribbon_RibbonColorPicker" data-uid="C1.Win.Ribbon.RibbonColorPicker" class="text-break">RibbonColorPicker Class
</h1>
  <div class="markdown level0 summary"><p>Represents a color picker element in a <a class="xref" href="C1.Win.Ribbon.C1Ribbon.html">C1Ribbon</a> 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="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="C1.Win.Ribbon.RibbonItem.html">RibbonItem</a></div>
    <div class="level4"><a class="xref" href="C1.Win.Ribbon.RibbonIconItem.html">RibbonIconItem</a></div>
    <div class="level5"><a class="xref" href="C1.Win.Ribbon.RibbonDropDownBase.html">RibbonDropDownBase</a></div>
    <div class="level6"><a class="xref" href="C1.Win.Ribbon.RibbonSplitButton.html">RibbonSplitButton</a></div>
    <div class="level7"><span class="xref">RibbonColorPicker</span></div>
      <div class="level8"><a class="xref" href="../C1.Win.FlexChart.Toolbar.10/C1.Win.Chart.Ribbon.ChartRibbonColorPicker.html">ChartRibbonColorPicker</a></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <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><span class="xref">ISupportUiaContainer</span></div>
    <div><span class="xref">IUiaSplitButton</span></div>
    <div><span class="xref">IUiaInvokeProvider</span></div>
    <div><span class="xref">IUiaExpandCollapseProvider</span></div>
    <div><span class="xref">IUiaScrollItemProvider</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.Ribbon.html">C1.Win.Ribbon</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.Ribbon.10.dll</h6>
  <h5 id="C1_Win_Ribbon_RibbonColorPicker_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class RibbonColorPicker : RibbonSplitButton, IComponent, IDisposable, ISupportUiaContainer, IUiaSplitButton, IUiaInvokeProvider, IUiaExpandCollapseProvider, IUiaScrollItemProvider</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class RibbonColorPicker
    Inherits RibbonSplitButton
    Implements IComponent, IDisposable, ISupportUiaContainer, IUiaSplitButton, IUiaInvokeProvider, IUiaExpandCollapseProvider, IUiaScrollItemProvider</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_Ribbon_RibbonColorPicker__ctor" data-uid="C1.Win.Ribbon.RibbonColorPicker.#ctor">
          <a class="xref" href="C1.Win.Ribbon.RibbonColorPicker.-ctor.html#C1_Win_Ribbon_RibbonColorPicker__ctor">RibbonColorPicker()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new instance of <a class="xref" href="C1.Win.Ribbon.RibbonColorPicker.html">RibbonColorPicker</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonColorPicker__ctor_System_String_" data-uid="C1.Win.Ribbon.RibbonColorPicker.#ctor(System.String)">
          <a class="xref" href="C1.Win.Ribbon.RibbonColorPicker.-ctor.html#C1_Win_Ribbon_RibbonColorPicker__ctor_System_String_">RibbonColorPicker(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new instance of <a class="xref" href="C1.Win.Ribbon.RibbonColorPicker.html">RibbonColorPicker</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonColorPicker__ctor_System_String_System_Drawing_Image_" data-uid="C1.Win.Ribbon.RibbonColorPicker.#ctor(System.String,System.Drawing.Image)">
          <a class="xref" href="C1.Win.Ribbon.RibbonColorPicker.-ctor.html#C1_Win_Ribbon_RibbonColorPicker__ctor_System_String_System_Drawing_Image_">RibbonColorPicker(string, Image)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new instance of <a class="xref" href="C1.Win.Ribbon.RibbonColorPicker.html">RibbonColorPicker</a>.</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_Ribbon_RibbonColorPicker_AutomaticColor" data-uid="C1.Win.Ribbon.RibbonColorPicker.AutomaticColor">
          <a class="xref" href="C1.Win.Ribbon.RibbonColorPicker.AutomaticColor.html#C1_Win_Ribbon_RibbonColorPicker_AutomaticColor">AutomaticColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the color that appears on the 'Automatic' item in the dropdown.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonColorPicker_Color" data-uid="C1.Win.Ribbon.RibbonColorPicker.Color">
          <a class="xref" href="C1.Win.Ribbon.RibbonColorPicker.Color.html#C1_Win_Ribbon_RibbonColorPicker_Color">Color</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the color that is currently selected in this <a class="xref" href="C1.Win.Ribbon.RibbonColorPicker.html">RibbonColorPicker</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonColorPicker_DefaultColor" data-uid="C1.Win.Ribbon.RibbonColorPicker.DefaultColor">
          <a class="xref" href="C1.Win.Ribbon.RibbonColorPicker.DefaultColor.html#C1_Win_Ribbon_RibbonColorPicker_DefaultColor">DefaultColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the color that appears on this <a class="xref" href="C1.Win.Ribbon.RibbonColorPicker.html">RibbonColorPicker</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonColorPicker_OfficeColorPalette" data-uid="C1.Win.Ribbon.RibbonColorPicker.OfficeColorPalette">
          <a class="xref" href="C1.Win.Ribbon.RibbonColorPicker.OfficeColorPalette.html#C1_Win_Ribbon_RibbonColorPicker_OfficeColorPalette">OfficeColorPalette</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the predefined color palette.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonColorPicker_ShowAutomaticColor" data-uid="C1.Win.Ribbon.RibbonColorPicker.ShowAutomaticColor">
          <a class="xref" href="C1.Win.Ribbon.RibbonColorPicker.ShowAutomaticColor.html#C1_Win_Ribbon_RibbonColorPicker_ShowAutomaticColor">ShowAutomaticColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the 'Automatic' item should appear in the dropdown.</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_Ribbon_RibbonColorPicker_OnClick_System_EventArgs_" data-uid="C1.Win.Ribbon.RibbonColorPicker.OnClick(System.EventArgs)">
          <a class="xref" href="C1.Win.Ribbon.RibbonColorPicker.OnClick.html#C1_Win_Ribbon_RibbonColorPicker_OnClick_System_EventArgs_">OnClick(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <a class="xref" href="C1.Win.Ribbon.RibbonSplitButton.Click.html">Click</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonColorPicker_OnSelectedColorChanged_System_EventArgs_" data-uid="C1.Win.Ribbon.RibbonColorPicker.OnSelectedColorChanged(System.EventArgs)">
          <a class="xref" href="C1.Win.Ribbon.RibbonColorPicker.OnSelectedColorChanged.html#C1_Win_Ribbon_RibbonColorPicker_OnSelectedColorChanged_System_EventArgs_">OnSelectedColorChanged(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <a class="xref" href="C1.Win.Ribbon.RibbonColorPicker.SelectedColorChanged.html">SelectedColorChanged</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonColorPicker_ResetAutomaticColor" data-uid="C1.Win.Ribbon.RibbonColorPicker.ResetAutomaticColor">
          <a class="xref" href="C1.Win.Ribbon.RibbonColorPicker.ResetAutomaticColor.html#C1_Win_Ribbon_RibbonColorPicker_ResetAutomaticColor">ResetAutomaticColor()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonColorPicker_ResetColor" data-uid="C1.Win.Ribbon.RibbonColorPicker.ResetColor">
          <a class="xref" href="C1.Win.Ribbon.RibbonColorPicker.ResetColor.html#C1_Win_Ribbon_RibbonColorPicker_ResetColor">ResetColor()</a>
        </td>
        <td class="markdown level1 summary"><p>Restores the default value of the <a class="xref" href="C1.Win.Ribbon.RibbonColorPicker.Color.html#C1_Win_Ribbon_RibbonColorPicker_Color">Color</a> property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonColorPicker_ResetDefaultColor" data-uid="C1.Win.Ribbon.RibbonColorPicker.ResetDefaultColor">
          <a class="xref" href="C1.Win.Ribbon.RibbonColorPicker.ResetDefaultColor.html#C1_Win_Ribbon_RibbonColorPicker_ResetDefaultColor">ResetDefaultColor()</a>
        </td>
        <td class="markdown level1 summary"><p>Restores the default value of the <a class="xref" href="C1.Win.Ribbon.RibbonColorPicker.DefaultColor.html#C1_Win_Ribbon_RibbonColorPicker_DefaultColor">DefaultColor</a> property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonColorPicker_ShouldSerializeAutomaticColor" data-uid="C1.Win.Ribbon.RibbonColorPicker.ShouldSerializeAutomaticColor">
          <a class="xref" href="C1.Win.Ribbon.RibbonColorPicker.ShouldSerializeAutomaticColor.html#C1_Win_Ribbon_RibbonColorPicker_ShouldSerializeAutomaticColor">ShouldSerializeAutomaticColor()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonColorPicker_ShouldSerializeColor" data-uid="C1.Win.Ribbon.RibbonColorPicker.ShouldSerializeColor">
          <a class="xref" href="C1.Win.Ribbon.RibbonColorPicker.ShouldSerializeColor.html#C1_Win_Ribbon_RibbonColorPicker_ShouldSerializeColor">ShouldSerializeColor()</a>
        </td>
        <td class="markdown level1 summary"><p>Specifies whether to save the value of the <a class="xref" href="C1.Win.Ribbon.RibbonColorPicker.Color.html#C1_Win_Ribbon_RibbonColorPicker_Color">Color</a> property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonColorPicker_ShouldSerializeDefaultColor" data-uid="C1.Win.Ribbon.RibbonColorPicker.ShouldSerializeDefaultColor">
          <a class="xref" href="C1.Win.Ribbon.RibbonColorPicker.ShouldSerializeDefaultColor.html#C1_Win_Ribbon_RibbonColorPicker_ShouldSerializeDefaultColor">ShouldSerializeDefaultColor()</a>
        </td>
        <td class="markdown level1 summary"><p>Specifies whether to save the value of the <a class="xref" href="C1.Win.Ribbon.RibbonColorPicker.DefaultColor.html#C1_Win_Ribbon_RibbonColorPicker_DefaultColor">DefaultColor</a> property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonColorPicker_ShouldSerializeItems" data-uid="C1.Win.Ribbon.RibbonColorPicker.ShouldSerializeItems">
          <a class="xref" href="C1.Win.Ribbon.RibbonColorPicker.ShouldSerializeItems.html#C1_Win_Ribbon_RibbonColorPicker_ShouldSerializeItems">ShouldSerializeItems()</a>
        </td>
        <td class="markdown level1 summary"><p>This member is for internal use only.</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_Ribbon_RibbonColorPicker_SelectedColorChanged" data-uid="C1.Win.Ribbon.RibbonColorPicker.SelectedColorChanged">
          <a class="xref" href="C1.Win.Ribbon.RibbonColorPicker.SelectedColorChanged.html">SelectedColorChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the <a class="xref" href="C1.Win.Ribbon.RibbonColorPicker.Color.html#C1_Win_Ribbon_RibbonColorPicker_Color">Color</a> property has changed.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
