# GrapeCity.Spreadsheet.Color.ToKnownColor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_Color_ToKnownColor_" data-uid="GrapeCity.Spreadsheet.Color.ToKnownColor*">ToKnownColor Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_Color_ToKnownColor_" data-uid="GrapeCity.Spreadsheet.Color.ToKnownColor*"></a>
<h4 id="GrapeCity_Spreadsheet_Color_ToKnownColor" data-uid="GrapeCity.Spreadsheet.Color.ToKnownColor">ToKnownColor()</h4>
<div 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>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public KnownColor ToKnownColor()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function ToKnownColor() As KnownColor</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="GrapeCity.Core.KnownColor.html">KnownColor</a></td>
      <td><p>An element of the <a class="xref" href="GrapeCity.Core.KnownColor.html">KnownColor</a> enumeration, if the <a class="xref" href="GrapeCity.Spreadsheet.Color.html">Color</a> is created from a predefined color by using the FromKnownColor method; otherwise, 0.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Spreadsheet_Color_ToKnownColor_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Invoke this function only if the <a class="xref" href="GrapeCity.Spreadsheet.Color.Type.html#GrapeCity_Spreadsheet_Color_Type">Type</a> is <a class="xref" href="GrapeCity.Spreadsheet.ColorType.html#GrapeCity_Spreadsheet_ColorType_ARGB">ARGB</a> and <a class="xref" href="GrapeCity.Spreadsheet.Color.IsKnownColor.html#GrapeCity_Spreadsheet_Color_IsKnownColor">IsKnownColor()</a> is <code>true</code>.
<p>The <a class="xref" href="GrapeCity.Spreadsheet.Color.Tint.html#GrapeCity_Spreadsheet_Color_Tint">Tint</a> value isn't applied to the result.</p>
</div>
</div>
