# GrapeCity.Spreadsheet.Color.FromThemeColor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_Color_FromThemeColor_" data-uid="GrapeCity.Spreadsheet.Color.FromThemeColor*">FromThemeColor Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_Color_FromThemeColor_" data-uid="GrapeCity.Spreadsheet.Color.FromThemeColor*"></a>
<h4 id="GrapeCity_Spreadsheet_Color_FromThemeColor_GrapeCity_Core_ThemeColors_System_Double_" data-uid="GrapeCity.Spreadsheet.Color.FromThemeColor(GrapeCity.Core.ThemeColors,System.Double)">FromThemeColor(ThemeColors, double)</h4>
<div class="markdown level1 summary"><p>Creates a <a class="xref" href="GrapeCity.Spreadsheet.Color.html">Color</a> structure from the specified predefined color.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static Color FromThemeColor(ThemeColors index, double tint = 0)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function FromThemeColor(index As ThemeColors, Optional tint As Double = 0) As Color</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Core.ThemeColors.html">ThemeColors</a></td>
      <td><span class="parametername">index</span></td>
      <td><p>An element of the <a class="xref" href="GrapeCity.Core.ThemeColors.html">ThemeColors</a> enumeration.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">tint</span></td>
      <td><p>The mixture of a color with white, which increases lightness,
and a shade is the mixture of a color with black, which reduces lightness. Valid values are -1 through 1.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Spreadsheet.Color.html">Color</a></td>
      <td><p>The <a class="xref" href="GrapeCity.Spreadsheet.Color.html">Color</a> value that this method creates.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
