# DDCssLib.CSSValue.SetFloatValue

## Content

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



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



<a id="DDCssLib_CSSValue_SetFloatValue_" data-uid="DDCssLib.CSSValue.SetFloatValue*"></a>
<h4 id="DDCssLib_CSSValue_SetFloatValue_System_Single_DDCssLib_eCSSUnit_" data-uid="DDCssLib.CSSValue.SetFloatValue(System.Single,DDCssLib.eCSSUnit)">SetFloatValue(float, eCSSUnit)</h4>
<div class="markdown level1 summary"><p>Specifies this current value as a float.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SetFloatValue(float aValue, eCSSUnit aUnit)</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.single">float</a></td>
      <td><span class="parametername">aValue</span></td>
      <td><p>The value to store.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="DDCssLib.eCSSUnit.html">eCSSUnit</a></td>
      <td><span class="parametername">aUnit</span></td>
      <td><p>The CSS unit type the value is in.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
