# DDCssLib.CSSValue.SetColorValue

## Content

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



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



<a id="DDCssLib_CSSValue_SetColorValue_" data-uid="DDCssLib.CSSValue.SetColorValue*"></a>
<h4 id="DDCssLib_CSSValue_SetColorValue_DDCssLib_eCSSUnit_System_Drawing_Color_System_String_" data-uid="DDCssLib.CSSValue.SetColorValue(DDCssLib.eCSSUnit,System.Drawing.Color,System.String)">SetColorValue(eCSSUnit, Color, string)</h4>
<div class="markdown level1 summary"><p>Specifies this class's current value as a System.Drawing.Color object.
Will set the Unit value to eCSSUnit.Color.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SetColorValue(eCSSUnit eColorUnit, Color aValue, string sOriginalSyntax)</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="DDCssLib.eCSSUnit.html">eCSSUnit</a></td>
      <td><span class="parametername">eColorUnit</span></td>
      <td><p>The type of CSSUnit.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.color">Color</a></td>
      <td><span class="parametername">aValue</span></td>
      <td><p>The actual color value in System.Drawing.Color.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">sOriginalSyntax</span></td>
      <td><p>The way that the color value should be outputed when the CSS string is rebuilt.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
