# DDCssLib.CSSValue.-ctor

## Content

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



<h1 id="DDCssLib_CSSValue__ctor_" data-uid="DDCssLib.CSSValue.#ctor*">CSSValue Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="DDCssLib_CSSValue__ctor_" data-uid="DDCssLib.CSSValue.#ctor*"></a>
<h4 id="DDCssLib_CSSValue__ctor_DDCssLib_eCSSUnit_" data-uid="DDCssLib.CSSValue.#ctor(DDCssLib.eCSSUnit)">CSSValue(eCSSUnit)</h4>
<div class="markdown level1 summary"><p>Constructs the class with the specified unit type.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public CSSValue(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="DDCssLib.eCSSUnit.html">eCSSUnit</a></td>
      <td><span class="parametername">aUnit</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="DDCssLib_CSSValue__ctor_" data-uid="DDCssLib.CSSValue.#ctor*"></a>
<h4 id="DDCssLib_CSSValue__ctor_System_Int32_DDCssLib_eCSSUnit_" data-uid="DDCssLib.CSSValue.#ctor(System.Int32,DDCssLib.eCSSUnit)">CSSValue(int, eCSSUnit)</h4>
<div class="markdown level1 summary"><p>Constructs the class with the specified unit type, and integer value.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public CSSValue(int 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.int32">int</a></td>
      <td><span class="parametername">aValue</span></td>
      <td><p>The integer value to construct the class with.</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 unit type to construct the class with.  Shold be Integer or Enumerated.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="DDCssLib_CSSValue__ctor_" data-uid="DDCssLib.CSSValue.#ctor*"></a>
<h4 id="DDCssLib_CSSValue__ctor_System_Single_DDCssLib_eCSSUnit_" data-uid="DDCssLib.CSSValue.#ctor(System.Single,DDCssLib.eCSSUnit)">CSSValue(float, eCSSUnit)</h4>
<div class="markdown level1 summary"><p>Constructs the class with the specified unit type, and value.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public CSSValue(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 construct the class with.</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 unit type to construct the class with.  Should be eCSSUnit.Percent.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="DDCssLib_CSSValue__ctor_" data-uid="DDCssLib.CSSValue.#ctor*"></a>
<h4 id="DDCssLib_CSSValue__ctor_System_String_DDCssLib_eCSSUnit_" data-uid="DDCssLib.CSSValue.#ctor(System.String,DDCssLib.eCSSUnit)">CSSValue(string, eCSSUnit)</h4>
<div class="markdown level1 summary"><p>Constructs the class with the specified unit type, and string value.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public CSSValue(string 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.string">string</a></td>
      <td><span class="parametername">aValue</span></td>
      <td><p>The string value to construct the class with.</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 unit type to construct the class with.  Should be eCSSUnit.String, or eCSSUnit.Counters</p>
</td>
    </tr>
  </tbody>
</table>


<a id="DDCssLib_CSSValue__ctor_" data-uid="DDCssLib.CSSValue.#ctor*"></a>
<h4 id="DDCssLib_CSSValue__ctor_DDCssLib_eCSSUnit_System_Drawing_Color_System_String_" data-uid="DDCssLib.CSSValue.#ctor(DDCssLib.eCSSUnit,System.Drawing.Color,System.String)">CSSValue(eCSSUnit, Color, string)</h4>
<div class="markdown level1 summary"><p>Constructs the class with the specified color.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public CSSValue(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 color being stored.</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 Color value to construct the class with.</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 outputed as a string.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
