# C1.Win.Ribbon.RibbonColorPalette

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_Ribbon_RibbonColorPalette" data-uid="C1.Win.Ribbon.RibbonColorPalette" class="text-break">RibbonColorPalette Class
</h1>
  <div class="markdown level0 summary"><p>Class that defines named groups of colors.</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">RibbonColorPalette</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="C1.Win.Ribbon.RibbonColorPaletteEntry.html">RibbonColorPaletteEntry</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ienumerable">IEnumerable</a></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_RibbonColorPalette_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class RibbonColorPalette : IEnumerable&lt;RibbonColorPaletteEntry&gt;, IEnumerable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class RibbonColorPalette
    Implements IEnumerable(Of RibbonColorPaletteEntry), IEnumerable</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_RibbonColorPalette__ctor_System_String_" data-uid="C1.Win.Ribbon.RibbonColorPalette.#ctor(System.String)">
          <a class="xref" href="C1.Win.Ribbon.RibbonColorPalette.-ctor.html#C1_Win_Ribbon_RibbonColorPalette__ctor_System_String_">RibbonColorPalette(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates an instance of the color palette with the specified theme name.</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_RibbonColorPalette_Count" data-uid="C1.Win.Ribbon.RibbonColorPalette.Count">
          <a class="xref" href="C1.Win.Ribbon.RibbonColorPalette.Count.html#C1_Win_Ribbon_RibbonColorPalette_Count">Count</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the number of palette entries.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonColorPalette_Item_System_Int32_" data-uid="C1.Win.Ribbon.RibbonColorPalette.Item(System.Int32)">
          <a class="xref" href="C1.Win.Ribbon.RibbonColorPalette.Item.html#C1_Win_Ribbon_RibbonColorPalette_Item_System_Int32_">this[int]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the palette entry with the specified index.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonColorPalette_ThemeName" data-uid="C1.Win.Ribbon.RibbonColorPalette.ThemeName">
          <a class="xref" href="C1.Win.Ribbon.RibbonColorPalette.ThemeName.html#C1_Win_Ribbon_RibbonColorPalette_ThemeName">ThemeName</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the name of the color theme.</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_RibbonColorPalette_Add_System_Drawing_Color_" data-uid="C1.Win.Ribbon.RibbonColorPalette.Add(System.Drawing.Color)">
          <a class="xref" href="C1.Win.Ribbon.RibbonColorPalette.Add.html#C1_Win_Ribbon_RibbonColorPalette_Add_System_Drawing_Color_">Add(Color)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds the specified color to the palette.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonColorPalette_Add_System_Drawing_Color_System_String_" data-uid="C1.Win.Ribbon.RibbonColorPalette.Add(System.Drawing.Color,System.String)">
          <a class="xref" href="C1.Win.Ribbon.RibbonColorPalette.Add.html#C1_Win_Ribbon_RibbonColorPalette_Add_System_Drawing_Color_System_String_">Add(Color, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds the color with the specified name.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonColorPalette_Add_System_Drawing_Color_System_String_System_String_" data-uid="C1.Win.Ribbon.RibbonColorPalette.Add(System.Drawing.Color,System.String,System.String)">
          <a class="xref" href="C1.Win.Ribbon.RibbonColorPalette.Add.html#C1_Win_Ribbon_RibbonColorPalette_Add_System_Drawing_Color_System_String_System_String_">Add(Color, string, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds the color with the specified name and description.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonColorPalette_Clear" data-uid="C1.Win.Ribbon.RibbonColorPalette.Clear">
          <a class="xref" href="C1.Win.Ribbon.RibbonColorPalette.Clear.html#C1_Win_Ribbon_RibbonColorPalette_Clear">Clear()</a>
        </td>
        <td class="markdown level1 summary"><p>Deletes all entries from the palette.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonColorPalette_Clone_System_String_" data-uid="C1.Win.Ribbon.RibbonColorPalette.Clone(System.String)">
          <a class="xref" href="C1.Win.Ribbon.RibbonColorPalette.Clone.html#C1_Win_Ribbon_RibbonColorPalette_Clone_System_String_">Clone(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a clone of this palette with the specified theme name.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonColorPalette_Contains_System_Drawing_Color_" data-uid="C1.Win.Ribbon.RibbonColorPalette.Contains(System.Drawing.Color)">
          <a class="xref" href="C1.Win.Ribbon.RibbonColorPalette.Contains.html#C1_Win_Ribbon_RibbonColorPalette_Contains_System_Drawing_Color_">Contains(Color)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether a color is in the palette.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonColorPalette_GetColorPalette_C1_Win_Ribbon_OfficeColorPalette_" data-uid="C1.Win.Ribbon.RibbonColorPalette.GetColorPalette(C1.Win.Ribbon.OfficeColorPalette)">
          <a class="xref" href="C1.Win.Ribbon.RibbonColorPalette.GetColorPalette.html#C1_Win_Ribbon_RibbonColorPalette_GetColorPalette_C1_Win_Ribbon_OfficeColorPalette_">GetColorPalette(OfficeColorPalette)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns one of the predefined color palettes.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonColorPalette_IndexOf_System_Drawing_Color_" data-uid="C1.Win.Ribbon.RibbonColorPalette.IndexOf(System.Drawing.Color)">
          <a class="xref" href="C1.Win.Ribbon.RibbonColorPalette.IndexOf.html#C1_Win_Ribbon_RibbonColorPalette_IndexOf_System_Drawing_Color_">IndexOf(Color)</a>
        </td>
        <td class="markdown level1 summary"><p>Searches for the specified color in the palette and returns a zero-based index of the found entry.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonColorPalette_Set_System_Int32_System_Drawing_Color_" data-uid="C1.Win.Ribbon.RibbonColorPalette.Set(System.Int32,System.Drawing.Color)">
          <a class="xref" href="C1.Win.Ribbon.RibbonColorPalette.Set.html#C1_Win_Ribbon_RibbonColorPalette_Set_System_Int32_System_Drawing_Color_">Set(int, Color)</a>
        </td>
        <td class="markdown level1 summary"><p>Assigns the color to the palette entry with the specified index.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_Ribbon_RibbonColorPalette_Set_System_Int32_System_Drawing_Color_System_String_" data-uid="C1.Win.Ribbon.RibbonColorPalette.Set(System.Int32,System.Drawing.Color,System.String)">
          <a class="xref" href="C1.Win.Ribbon.RibbonColorPalette.Set.html#C1_Win_Ribbon_RibbonColorPalette_Set_System_Int32_System_Drawing_Color_System_String_">Set(int, Color, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Assigns the color and color name to the palette entry with the specified index.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
