# GrapeCity.Spreadsheet.Color.ToIndexedColor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_Color_ToIndexedColor_" data-uid="GrapeCity.Spreadsheet.Color.ToIndexedColor*">ToIndexedColor Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_Color_ToIndexedColor_" data-uid="GrapeCity.Spreadsheet.Color.ToIndexedColor*"></a>
<h4 id="GrapeCity_Spreadsheet_Color_ToIndexedColor" data-uid="GrapeCity.Spreadsheet.Color.ToIndexedColor">ToIndexedColor()</h4>
<div class="markdown level1 summary"><p>Gets the indexed color value of this <a class="xref" href="GrapeCity.Spreadsheet.Color.html">Color</a> structure.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public int ToIndexedColor()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function ToIndexedColor() As Integer</code></pre>
</div>
<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="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><p>The indexed color value of this <a class="xref" href="GrapeCity.Spreadsheet.Color.html">Color</a> structure.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Spreadsheet_Color_ToIndexedColor_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The indexed color has base 1. The <a class="xref" href="GrapeCity.Spreadsheet.Color.Tint.html#GrapeCity_Spreadsheet_Color_Tint">Tint</a> value isn't applied to the returned result.</p>
</div>
</div>
