# DDCssLib.CSSValue.GetColorValue

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="DDCssLib_CSSValue_GetColorValue_" data-uid="DDCssLib.CSSValue.GetColorValue*">GetColorValue Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="DDCssLib_CSSValue_GetColorValue_" data-uid="DDCssLib.CSSValue.GetColorValue*"></a>
<h4 id="DDCssLib_CSSValue_GetColorValue" data-uid="DDCssLib.CSSValue.GetColorValue">GetColorValue()</h4>
<div class="markdown level1 summary"><p>Returns the current color value as a Color object.  If the current unit type is string it will be
converted using ColorTranslator.FromHtml().
If the current value is a Color it is returned directly.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Color GetColorValue()</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.drawing.color">Color</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
