# DDCssLib.CSSDeclaration.GetValue

## Content

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



<h1 id="DDCssLib_CSSDeclaration_GetValue_" data-uid="DDCssLib.CSSDeclaration.GetValue*">GetValue Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="DDCssLib_CSSDeclaration_GetValue_" data-uid="DDCssLib.CSSDeclaration.GetValue*"></a>
<h4 id="DDCssLib_CSSDeclaration_GetValue_DDCssLib_eCSSProperty_" data-uid="DDCssLib.CSSDeclaration.GetValue(DDCssLib.eCSSProperty)">GetValue(eCSSProperty)</h4>
<div class="markdown level1 summary"><p>Returns the value of the specified property as a CSSValue object.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public CSSValue GetValue(eCSSProperty aProperty)</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.eCSSProperty.html">eCSSProperty</a></td>
      <td><span class="parametername">aProperty</span></td>
      <td><p>The property to get the value of.</p>
</td>
    </tr>
  </tbody>
</table>
<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="DDCssLib.CSSValue.html">CSSValue</a></td>
      <td><p>The CSSValue object containing the specified property's value.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="DDCssLib_CSSDeclaration_GetValue_" data-uid="DDCssLib.CSSDeclaration.GetValue*"></a>
<h4 id="DDCssLib_CSSDeclaration_GetValue_DDCssLib_eCSSProperty_System_String__" data-uid="DDCssLib.CSSDeclaration.GetValue(DDCssLib.eCSSProperty,System.String@)">GetValue(eCSSProperty, ref string)</h4>
<div class="markdown level1 summary"><p>Retrieves the value for the specified CSS property from this declaration instance and places the value into sValue.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void GetValue(eCSSProperty aProperty, ref string sValue)</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.eCSSProperty.html">eCSSProperty</a></td>
      <td><span class="parametername">aProperty</span></td>
      <td><p>The CSS property to retrieve the value for.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">sValue</span></td>
      <td><p>The string variable to set to the string representation of the specified property's value.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
