# GrapeCity.Spreadsheet.Color

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Spreadsheet_Color" data-uid="GrapeCity.Spreadsheet.Color" class="text-break">Color Struct
</h1>
  <div class="markdown level0 summary"><p>Struct ColorData</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iequatable-1">IEquatable</a>&lt;<a class="xref" href="GrapeCity.Spreadsheet.Color.html">Color</a>&gt;</div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Spreadsheet.html">GrapeCity.Spreadsheet</a></h6>
  <h6><strong>Assembly</strong>: GrapeCity.Spreadsheet.dll</h6>
  <h5 id="GrapeCity_Spreadsheet_Color_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public struct Color : IEquatable&lt;Color&gt;</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Structure Color
    Implements IEquatable(Of Color)</code></pre>
  </div>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_Spreadsheet_Color_Auto" data-uid="GrapeCity.Spreadsheet.Color.Auto">
          <a class="xref" href="GrapeCity.Spreadsheet.Color.Auto.html">Auto</a>
        </td>
        <td class="markdown level1 summary"><p>Represents a color that is automated by the application.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Color_ColorIndexAutomatic" data-uid="GrapeCity.Spreadsheet.Color.ColorIndexAutomatic">
          <a class="xref" href="GrapeCity.Spreadsheet.Color.ColorIndexAutomatic.html">ColorIndexAutomatic</a>
        </td>
        <td class="markdown level1 summary"><p>Represents the automatic color.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Color_ColorIndexNone" data-uid="GrapeCity.Spreadsheet.Color.ColorIndexNone">
          <a class="xref" href="GrapeCity.Spreadsheet.Color.ColorIndexNone.html">ColorIndexNone</a>
        </td>
        <td class="markdown level1 summary"><p>Represents no index color is set.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Color_ColorIndexTooltipColor" data-uid="GrapeCity.Spreadsheet.Color.ColorIndexTooltipColor">
          <a class="xref" href="GrapeCity.Spreadsheet.Color.ColorIndexTooltipColor.html">ColorIndexTooltipColor</a>
        </td>
        <td class="markdown level1 summary"><p>Represents the default tooltip's background indexed color.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Color_ColorIndexWindow" data-uid="GrapeCity.Spreadsheet.Color.ColorIndexWindow">
          <a class="xref" href="GrapeCity.Spreadsheet.Color.ColorIndexWindow.html">ColorIndexWindow</a>
        </td>
        <td class="markdown level1 summary"><p>Represents the default window indexed color.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Color_ColorIndexWindowText" data-uid="GrapeCity.Spreadsheet.Color.ColorIndexWindowText">
          <a class="xref" href="GrapeCity.Spreadsheet.Color.ColorIndexWindowText.html">ColorIndexWindowText</a>
        </td>
        <td class="markdown level1 summary"><p>Represents the default window text indexed color.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Color_Empty" data-uid="GrapeCity.Spreadsheet.Color.Empty">
          <a class="xref" href="GrapeCity.Spreadsheet.Color.Empty.html">Empty</a>
        </td>
        <td class="markdown level1 summary"><p>Represents a color that is <code>null</code>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Color_ThemeColorsNone" data-uid="GrapeCity.Spreadsheet.Color.ThemeColorsNone">
          <a class="xref" href="GrapeCity.Spreadsheet.Color.ThemeColorsNone.html">ThemeColorsNone</a>
        </td>
        <td class="markdown level1 summary"><p>Represents no theme color is set</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Color_Window" data-uid="GrapeCity.Spreadsheet.Color.Window">
          <a class="xref" href="GrapeCity.Spreadsheet.Color.Window.html">Window</a>
        </td>
        <td class="markdown level1 summary"><p>Represents a color that is the color of window background.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Color_WindowText" data-uid="GrapeCity.Spreadsheet.Color.WindowText">
          <a class="xref" href="GrapeCity.Spreadsheet.Color.WindowText.html">WindowText</a>
        </td>
        <td class="markdown level1 summary"><p>Represents a color that is the color of window foreground.</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="GrapeCity_Spreadsheet_Color_A" data-uid="GrapeCity.Spreadsheet.Color.A">
          <a class="xref" href="GrapeCity.Spreadsheet.Color.A.html#GrapeCity_Spreadsheet_Color_A">A</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the alpha component value of this <a class="xref" href="GrapeCity.Spreadsheet.Color.html">Color</a> structure.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Color_B" data-uid="GrapeCity.Spreadsheet.Color.B">
          <a class="xref" href="GrapeCity.Spreadsheet.Color.B.html#GrapeCity_Spreadsheet_Color_B">B</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the blue component value of this <a class="xref" href="GrapeCity.Spreadsheet.Color.html">Color</a> structure.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Color_G" data-uid="GrapeCity.Spreadsheet.Color.G">
          <a class="xref" href="GrapeCity.Spreadsheet.Color.G.html#GrapeCity_Spreadsheet_Color_G">G</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the green component value of this <a class="xref" href="GrapeCity.Spreadsheet.Color.html">Color</a> structure.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Color_R" data-uid="GrapeCity.Spreadsheet.Color.R">
          <a class="xref" href="GrapeCity.Spreadsheet.Color.R.html#GrapeCity_Spreadsheet_Color_R">R</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the red component value of this <a class="xref" href="GrapeCity.Spreadsheet.Color.html">Color</a> structure.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Color_Tint" data-uid="GrapeCity.Spreadsheet.Color.Tint">
          <a class="xref" href="GrapeCity.Spreadsheet.Color.Tint.html#GrapeCity_Spreadsheet_Color_Tint">Tint</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the tint.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Color_Type" data-uid="GrapeCity.Spreadsheet.Color.Type">
          <a class="xref" href="GrapeCity.Spreadsheet.Color.Type.html#GrapeCity_Spreadsheet_Color_Type">Type</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the type of color.</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="GrapeCity_Spreadsheet_Color_Clone" data-uid="GrapeCity.Spreadsheet.Color.Clone">
          <a class="xref" href="GrapeCity.Spreadsheet.Color.Clone.html#GrapeCity_Spreadsheet_Color_Clone">Clone()</a>
        </td>
        <td class="markdown level1 summary"><p>Clones this instance.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Color_Equals_GrapeCity_Spreadsheet_Color_" data-uid="GrapeCity.Spreadsheet.Color.Equals(GrapeCity.Spreadsheet.Color)">
          <a class="xref" href="GrapeCity.Spreadsheet.Color.Equals.html#GrapeCity_Spreadsheet_Color_Equals_GrapeCity_Spreadsheet_Color_">Equals(Color)</a>
        </td>
        <td class="markdown level1 summary"><p>Indicates whether the current object is equal to another object of the same type.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Color_Equals_System_Object_" data-uid="GrapeCity.Spreadsheet.Color.Equals(System.Object)">
          <a class="xref" href="GrapeCity.Spreadsheet.Color.Equals.html#GrapeCity_Spreadsheet_Color_Equals_System_Object_">Equals(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the specified <a class="xref" href="GrapeCity.Spreadsheet.Color.html">Color</a> is equal to this instance.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Color_FromArgb_System_Int32_" data-uid="GrapeCity.Spreadsheet.Color.FromArgb(System.Int32)">
          <a class="xref" href="GrapeCity.Spreadsheet.Color.FromArgb.html#GrapeCity_Spreadsheet_Color_FromArgb_System_Int32_">FromArgb(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a <a class="xref" href="GrapeCity.Spreadsheet.Color.html">Color</a> structure from the four 8-bit ARGB components (alpha, red, green, and blue) values.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Color_FromArgb_System_Int32_System_Int32_System_Int32_" data-uid="GrapeCity.Spreadsheet.Color.FromArgb(System.Int32,System.Int32,System.Int32)">
          <a class="xref" href="GrapeCity.Spreadsheet.Color.FromArgb.html#GrapeCity_Spreadsheet_Color_FromArgb_System_Int32_System_Int32_System_Int32_">FromArgb(int, int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a <a class="xref" href="GrapeCity.Spreadsheet.Color.html">Color</a> structure from the four 8-bit ARGB components (alpha, red, green, and blue) values.
Although this method allows a 32-bit value to be passed for each component, the value of each component is limited to 8 bits.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Color_FromArgb_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="GrapeCity.Spreadsheet.Color.FromArgb(System.Int32,System.Int32,System.Int32,System.Int32)">
          <a class="xref" href="GrapeCity.Spreadsheet.Color.FromArgb.html#GrapeCity_Spreadsheet_Color_FromArgb_System_Int32_System_Int32_System_Int32_System_Int32_">FromArgb(int, int, int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a <a class="xref" href="GrapeCity.Spreadsheet.Color.html">Color</a> structure from the four 8-bit ARGB components (alpha, red, green, and blue) values.
Although this method allows a 32-bit value to be passed for each component, the value of each component is limited to 8 bits.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Color_FromFormatColorEnum_GrapeCity_Spreadsheet_FormatColorEnum_" data-uid="GrapeCity.Spreadsheet.Color.FromFormatColorEnum(GrapeCity.Spreadsheet.FormatColorEnum)">
          <a class="xref" href="GrapeCity.Spreadsheet.Color.FromFormatColorEnum.html#GrapeCity_Spreadsheet_Color_FromFormatColorEnum_GrapeCity_Spreadsheet_FormatColorEnum_">FromFormatColorEnum(FormatColorEnum)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a <a class="xref" href="GrapeCity.Spreadsheet.Color.html">Color</a> structure from the specified format color enum.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Color_FromIndexedColor_System_Int32_System_Double_" data-uid="GrapeCity.Spreadsheet.Color.FromIndexedColor(System.Int32,System.Double)">
          <a class="xref" href="GrapeCity.Spreadsheet.Color.FromIndexedColor.html#GrapeCity_Spreadsheet_Color_FromIndexedColor_System_Int32_System_Double_">FromIndexedColor(int, double)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a <a class="xref" href="GrapeCity.Spreadsheet.Color.html">Color</a> structure from the specified indexed color.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Color_FromKnownColor_GrapeCity_Core_KnownColor_System_Double_" data-uid="GrapeCity.Spreadsheet.Color.FromKnownColor(GrapeCity.Core.KnownColor,System.Double)">
          <a class="xref" href="GrapeCity.Spreadsheet.Color.FromKnownColor.html#GrapeCity_Spreadsheet_Color_FromKnownColor_GrapeCity_Core_KnownColor_System_Double_">FromKnownColor(KnownColor, double)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a <a class="xref" href="GrapeCity.Spreadsheet.Color.html">Color</a> structure from the specified predefined color.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Color_FromThemeColor_GrapeCity_Core_ThemeColors_System_Double_" data-uid="GrapeCity.Spreadsheet.Color.FromThemeColor(GrapeCity.Core.ThemeColors,System.Double)">
          <a class="xref" href="GrapeCity.Spreadsheet.Color.FromThemeColor.html#GrapeCity_Spreadsheet_Color_FromThemeColor_GrapeCity_Core_ThemeColors_System_Double_">FromThemeColor(ThemeColors, double)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a <a class="xref" href="GrapeCity.Spreadsheet.Color.html">Color</a> structure from the specified predefined color.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Color_GetHashCode" data-uid="GrapeCity.Spreadsheet.Color.GetHashCode">
          <a class="xref" href="GrapeCity.Spreadsheet.Color.GetHashCode.html#GrapeCity_Spreadsheet_Color_GetHashCode">GetHashCode()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a hash code for this instance.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Color_IsAutoColor" data-uid="GrapeCity.Spreadsheet.Color.IsAutoColor">
          <a class="xref" href="GrapeCity.Spreadsheet.Color.IsAutoColor.html#GrapeCity_Spreadsheet_Color_IsAutoColor">IsAutoColor()</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether this color represent an automatic color.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Color_IsEmpty" data-uid="GrapeCity.Spreadsheet.Color.IsEmpty">
          <a class="xref" href="GrapeCity.Spreadsheet.Color.IsEmpty.html#GrapeCity_Spreadsheet_Color_IsEmpty">IsEmpty()</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether this color represent an empty color.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Color_IsKnownColor" data-uid="GrapeCity.Spreadsheet.Color.IsKnownColor">
          <a class="xref" href="GrapeCity.Spreadsheet.Color.IsKnownColor.html#GrapeCity_Spreadsheet_Color_IsKnownColor">IsKnownColor()</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether this <a class="xref" href="GrapeCity.Spreadsheet.Color.html">Color</a> structure is a predefined color.
Predefined colors are represented by the elements of the KnownColor enumeration.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Color_IsNoDefinedColor" data-uid="GrapeCity.Spreadsheet.Color.IsNoDefinedColor">
          <a class="xref" href="GrapeCity.Spreadsheet.Color.IsNoDefinedColor.html#GrapeCity_Spreadsheet_Color_IsNoDefinedColor">IsNoDefinedColor()</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether this color is not defined.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Color_ToArgb" data-uid="GrapeCity.Spreadsheet.Color.ToArgb">
          <a class="xref" href="GrapeCity.Spreadsheet.Color.ToArgb.html#GrapeCity_Spreadsheet_Color_ToArgb">ToArgb()</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the 32-bit ARGB value of this <a class="xref" href="GrapeCity.Spreadsheet.Color.html">Color</a> structure.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Color_ToGrayscale" data-uid="GrapeCity.Spreadsheet.Color.ToGrayscale">
          <a class="xref" href="GrapeCity.Spreadsheet.Color.ToGrayscale.html#GrapeCity_Spreadsheet_Color_ToGrayscale">ToGrayscale()</a>
        </td>
        <td class="markdown level1 summary"><p>Get the corresponding grayscale color.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Color_ToIndexedColor" data-uid="GrapeCity.Spreadsheet.Color.ToIndexedColor">
          <a class="xref" href="GrapeCity.Spreadsheet.Color.ToIndexedColor.html#GrapeCity_Spreadsheet_Color_ToIndexedColor">ToIndexedColor()</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the indexed color value of this <a class="xref" href="GrapeCity.Spreadsheet.Color.html">Color</a> structure.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Color_ToKnownColor" data-uid="GrapeCity.Spreadsheet.Color.ToKnownColor">
          <a class="xref" href="GrapeCity.Spreadsheet.Color.ToKnownColor.html#GrapeCity_Spreadsheet_Color_ToKnownColor">ToKnownColor()</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="GrapeCity.Core.KnownColor.html">KnownColor</a>  value of this <a class="xref" href="GrapeCity.Spreadsheet.Color.html">Color</a> structure.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Color_ToString" data-uid="GrapeCity.Spreadsheet.Color.ToString">
          <a class="xref" href="GrapeCity.Spreadsheet.Color.ToString.html#GrapeCity_Spreadsheet_Color_ToString">ToString()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the fully qualified type name of this instance.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_Color_ToThemeColors" data-uid="GrapeCity.Spreadsheet.Color.ToThemeColors">
          <a class="xref" href="GrapeCity.Spreadsheet.Color.ToThemeColors.html#GrapeCity_Spreadsheet_Color_ToThemeColors">ToThemeColors()</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="GrapeCity.Core.ThemeColors.html">ThemeColors</a> value of this <a class="xref" href="GrapeCity.Spreadsheet.Color.html">Color</a> structure.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
