# GrapeCity.Spreadsheet.Color.FromIndexedColor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_Color_FromIndexedColor_" data-uid="GrapeCity.Spreadsheet.Color.FromIndexedColor*">FromIndexedColor Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_Color_FromIndexedColor_" data-uid="GrapeCity.Spreadsheet.Color.FromIndexedColor*"></a>
<h4 id="GrapeCity_Spreadsheet_Color_FromIndexedColor_System_Int32_System_Double_" data-uid="GrapeCity.Spreadsheet.Color.FromIndexedColor(System.Int32,System.Double)">FromIndexedColor(int, double)</h4>
<div class="markdown level1 summary"><p>Creates a <a class="xref" href="GrapeCity.Spreadsheet.Color.html">Color</a> structure from the specified indexed 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 FromIndexedColor(int index, double tint = 0)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function FromIndexedColor(index As Integer, 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="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">index</span></td>
      <td><p>An integer value indicates the indexed color. The value has base 1.</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>
