# DDCssLib.CSSDeclaration

## Content

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



  <h1 id="DDCssLib_CSSDeclaration" data-uid="DDCssLib.CSSDeclaration" class="text-break">CSSDeclaration Class
</h1>
  <div class="markdown level0 summary"><p>CSSDeclaration represents the declaration block of a CSS rule.<br>
Provides a programmatic interface directly to the CSS declarations.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">CSSDeclaration</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href=""></a></h6>
  <h6><strong>Assembly</strong>: MESCIUS.ActiveReports.dll</h6>
  <h5 id="DDCssLib_CSSDeclaration_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class CSSDeclaration</code></pre>
  </div>
  <h5 id="DDCssLib_CSSDeclaration_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>Use the publicly accessable m_pXxxx structs to retrieve known property values.<br>
Unknown properties and their text values are available in the publicly accessable m_unknownPropTable variable.
Use AppendValue to append values to this CSSDeclaration.</p>
</div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="DDCssLib_CSSDeclaration__ctor" data-uid="DDCssLib.CSSDeclaration.#ctor">
          <a class="xref" href="DDCssLib.CSSDeclaration.-ctor.html#DDCssLib_CSSDeclaration__ctor">CSSDeclaration()</a>
        </td>
        <td class="markdown level1 summary"><p>The default constructor for CSSDeclaration.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="DDCssLib_CSSDeclaration_m_pAural" data-uid="DDCssLib.CSSDeclaration.m_pAural">
          <a class="xref" href="DDCssLib.CSSDeclaration.m_pAural.html">m_pAural</a>
        </td>
        <td class="markdown level1 summary"><p>Gets any text aural declarations in this CSSDeclaration.</p>
</td>
      </tr>
      <tr>
        <td id="DDCssLib_CSSDeclaration_m_pBreaks" data-uid="DDCssLib.CSSDeclaration.m_pBreaks">
          <a class="xref" href="DDCssLib.CSSDeclaration.m_pBreaks.html">m_pBreaks</a>
        </td>
        <td class="markdown level1 summary"><p>Gets any text breaks declarations in this CSSDeclaration.</p>
</td>
      </tr>
      <tr>
        <td id="DDCssLib_CSSDeclaration_m_pColor" data-uid="DDCssLib.CSSDeclaration.m_pColor">
          <a class="xref" href="DDCssLib.CSSDeclaration.m_pColor.html">m_pColor</a>
        </td>
        <td class="markdown level1 summary"><p>Gets any color related declarations in this CSSDeclaration.</p>
</td>
      </tr>
      <tr>
        <td id="DDCssLib_CSSDeclaration_m_pContent" data-uid="DDCssLib.CSSDeclaration.m_pContent">
          <a class="xref" href="DDCssLib.CSSDeclaration.m_pContent.html">m_pContent</a>
        </td>
        <td class="markdown level1 summary"><p>Gets any text content declarations in this CSSDeclaration.</p>
</td>
      </tr>
      <tr>
        <td id="DDCssLib_CSSDeclaration_m_pDisplay" data-uid="DDCssLib.CSSDeclaration.m_pDisplay">
          <a class="xref" href="DDCssLib.CSSDeclaration.m_pDisplay.html">m_pDisplay</a>
        </td>
        <td class="markdown level1 summary"><p>Gets any text display declarations in this CSSDeclaration.</p>
</td>
      </tr>
      <tr>
        <td id="DDCssLib_CSSDeclaration_m_pFont" data-uid="DDCssLib.CSSDeclaration.m_pFont">
          <a class="xref" href="DDCssLib.CSSDeclaration.m_pFont.html">m_pFont</a>
        </td>
        <td class="markdown level1 summary"><p>Gets any font property declarations in this CSSDeclaration.</p>
</td>
      </tr>
      <tr>
        <td id="DDCssLib_CSSDeclaration_m_pLine" data-uid="DDCssLib.CSSDeclaration.m_pLine">
          <a class="xref" href="DDCssLib.CSSDeclaration.m_pLine.html">m_pLine</a>
        </td>
        <td class="markdown level1 summary"><p>Gets any text line declarations in this CSSDeclaration.</p>
</td>
      </tr>
      <tr>
        <td id="DDCssLib_CSSDeclaration_m_pList" data-uid="DDCssLib.CSSDeclaration.m_pList">
          <a class="xref" href="DDCssLib.CSSDeclaration.m_pList.html">m_pList</a>
        </td>
        <td class="markdown level1 summary"><p>Gets any text list declarations in this CSSDeclaration.</p>
</td>
      </tr>
      <tr>
        <td id="DDCssLib_CSSDeclaration_m_pMargin" data-uid="DDCssLib.CSSDeclaration.m_pMargin">
          <a class="xref" href="DDCssLib.CSSDeclaration.m_pMargin.html">m_pMargin</a>
        </td>
        <td class="markdown level1 summary"><p>Gets any text margin declarations in this CSSDeclaration.</p>
</td>
      </tr>
      <tr>
        <td id="DDCssLib_CSSDeclaration_m_pMisc" data-uid="DDCssLib.CSSDeclaration.m_pMisc">
          <a class="xref" href="DDCssLib.CSSDeclaration.m_pMisc.html">m_pMisc</a>
        </td>
        <td class="markdown level1 summary"><p>Gets any text misc declarations in this CSSDeclaration.</p>
</td>
      </tr>
      <tr>
        <td id="DDCssLib_CSSDeclaration_m_pPage" data-uid="DDCssLib.CSSDeclaration.m_pPage">
          <a class="xref" href="DDCssLib.CSSDeclaration.m_pPage.html">m_pPage</a>
        </td>
        <td class="markdown level1 summary"><p>Gets any text page declarations in this CSSDeclaration.</p>
</td>
      </tr>
      <tr>
        <td id="DDCssLib_CSSDeclaration_m_pPosition" data-uid="DDCssLib.CSSDeclaration.m_pPosition">
          <a class="xref" href="DDCssLib.CSSDeclaration.m_pPosition.html">m_pPosition</a>
        </td>
        <td class="markdown level1 summary"><p>Gets any text positional declarations (spacing, decoration, alignment) in this CSSDeclaration.</p>
</td>
      </tr>
      <tr>
        <td id="DDCssLib_CSSDeclaration_m_pTable" data-uid="DDCssLib.CSSDeclaration.m_pTable">
          <a class="xref" href="DDCssLib.CSSDeclaration.m_pTable.html">m_pTable</a>
        </td>
        <td class="markdown level1 summary"><p>Gets any text table declarations in this CSSDeclaration.</p>
</td>
      </tr>
      <tr>
        <td id="DDCssLib_CSSDeclaration_m_pText" data-uid="DDCssLib.CSSDeclaration.m_pText">
          <a class="xref" href="DDCssLib.CSSDeclaration.m_pText.html">m_pText</a>
        </td>
        <td class="markdown level1 summary"><p>Gets any text related declarations (spacing, decoration, alignment) in this CSSDeclaration.</p>
</td>
      </tr>
      <tr>
        <td id="DDCssLib_CSSDeclaration_m_pUserInterface" data-uid="DDCssLib.CSSDeclaration.m_pUserInterface">
          <a class="xref" href="DDCssLib.CSSDeclaration.m_pUserInterface.html">m_pUserInterface</a>
        </td>
        <td class="markdown level1 summary"><p>Gets any text user interface declarations in this CSSDeclaration.</p>
</td>
      </tr>
      <tr>
        <td id="DDCssLib_CSSDeclaration_m_unknownPropTable" data-uid="DDCssLib.CSSDeclaration.m_unknownPropTable">
          <a class="xref" href="DDCssLib.CSSDeclaration.m_unknownPropTable.html">m_unknownPropTable</a>
        </td>
        <td class="markdown level1 summary"><p>The unknown property table</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="DDCssLib_CSSDeclaration_AppendUnknownValue_System_String_System_String_" data-uid="DDCssLib.CSSDeclaration.AppendUnknownValue(System.String,System.String)">
          <a class="xref" href="DDCssLib.CSSDeclaration.AppendUnknownValue.html#DDCssLib_CSSDeclaration_AppendUnknownValue_System_String_System_String_">AppendUnknownValue(string, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Used to append unknown properties to this declaration.  The unknown name and value will be used only
when rebuilding the CSS string again.</p>
</td>
      </tr>
      <tr>
        <td id="DDCssLib_CSSDeclaration_AppendValue_DDCssLib_eCSSProperty_DDCssLib_CSSValue_" data-uid="DDCssLib.CSSDeclaration.AppendValue(DDCssLib.eCSSProperty,DDCssLib.CSSValue)">
          <a class="xref" href="DDCssLib.CSSDeclaration.AppendValue.html#DDCssLib_CSSDeclaration_AppendValue_DDCssLib_eCSSProperty_DDCssLib_CSSValue_">AppendValue(eCSSProperty, CSSValue)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds the specified value for the specified property to this CSSDeclaration.</p>
</td>
      </tr>
      <tr>
        <td id="DDCssLib_CSSDeclaration_Clone_DDCssLib_CSSDeclaration__" data-uid="DDCssLib.CSSDeclaration.Clone(DDCssLib.CSSDeclaration@)">
          <a class="xref" href="DDCssLib.CSSDeclaration.Clone.html#DDCssLib_CSSDeclaration_Clone_DDCssLib_CSSDeclaration__">Clone(ref CSSDeclaration)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates copy of this instance and places it in the specified variable.</p>
</td>
      </tr>
      <tr>
        <td id="DDCssLib_CSSDeclaration_Count" data-uid="DDCssLib.CSSDeclaration.Count">
          <a class="xref" href="DDCssLib.CSSDeclaration.Count.html#DDCssLib_CSSDeclaration_Count">Count()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the number of declarations stored by this CSSDeclaration instance (that were added with AppendValue).</p>
</td>
      </tr>
      <tr>
        <td id="DDCssLib_CSSDeclaration_GetImportantValues_DDCssLib_CSSDeclaration__" data-uid="DDCssLib.CSSDeclaration.GetImportantValues(DDCssLib.CSSDeclaration@)">
          <a class="xref" href="DDCssLib.CSSDeclaration.GetImportantValues.html#DDCssLib_CSSDeclaration_GetImportantValues_DDCssLib_CSSDeclaration__">GetImportantValues(ref CSSDeclaration)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns all of the property/values in this CSSDeclaration instance that were marked with the !important declaration.</p>
</td>
      </tr>
      <tr>
        <td id="DDCssLib_CSSDeclaration_GetProperty_System_Int32_" data-uid="DDCssLib.CSSDeclaration.GetProperty(System.Int32)">
          <a class="xref" href="DDCssLib.CSSDeclaration.GetProperty.html#DDCssLib_CSSDeclaration_GetProperty_System_Int32_">GetProperty(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the eCSSProperty at the specified index in the property order array.</p>
</td>
      </tr>
      <tr>
        <td id="DDCssLib_CSSDeclaration_GetValue_DDCssLib_eCSSProperty_" data-uid="DDCssLib.CSSDeclaration.GetValue(DDCssLib.eCSSProperty)">
          <a class="xref" href="DDCssLib.CSSDeclaration.GetValue.html#DDCssLib_CSSDeclaration_GetValue_DDCssLib_eCSSProperty_">GetValue(eCSSProperty)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the value of the specified property as a CSSValue object.</p>
</td>
      </tr>
      <tr>
        <td id="DDCssLib_CSSDeclaration_GetValue_DDCssLib_eCSSProperty_System_String__" data-uid="DDCssLib.CSSDeclaration.GetValue(DDCssLib.eCSSProperty,System.String@)">
          <a class="xref" href="DDCssLib.CSSDeclaration.GetValue.html#DDCssLib_CSSDeclaration_GetValue_DDCssLib_eCSSProperty_System_String__">GetValue(eCSSProperty, ref string)</a>
        </td>
        <td class="markdown level1 summary"><p>Retrieves the value for the specified CSS property from this declaration instance and places the value into sValue.</p>
</td>
      </tr>
      <tr>
        <td id="DDCssLib_CSSDeclaration_GetValueIsImportant_DDCssLib_eCSSProperty_System_Boolean__" data-uid="DDCssLib.CSSDeclaration.GetValueIsImportant(DDCssLib.eCSSProperty,System.Boolean@)">
          <a class="xref" href="DDCssLib.CSSDeclaration.GetValueIsImportant.html#DDCssLib_CSSDeclaration_GetValueIsImportant_DDCssLib_eCSSProperty_System_Boolean__">GetValueIsImportant(eCSSProperty, ref bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines if the specified property stored in this CSSDeclaration instance was marked with the !important declaration.</p>
</td>
      </tr>
      <tr>
        <td id="DDCssLib_CSSDeclaration_GetValueIsImportant_System_String_System_Boolean__" data-uid="DDCssLib.CSSDeclaration.GetValueIsImportant(System.String,System.Boolean@)">
          <a class="xref" href="DDCssLib.CSSDeclaration.GetValueIsImportant.html#DDCssLib_CSSDeclaration_GetValueIsImportant_System_String_System_Boolean__">GetValueIsImportant(string, ref bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines if the specified property stored in this CSSDeclaration instance was marked with the !important declaration.</p>
</td>
      </tr>
      <tr>
        <td id="DDCssLib_CSSDeclaration_Reset" data-uid="DDCssLib.CSSDeclaration.Reset">
          <a class="xref" href="DDCssLib.CSSDeclaration.Reset.html#DDCssLib_CSSDeclaration_Reset">Reset()</a>
        </td>
        <td class="markdown level1 summary"><p>Resets all CSSValues contained in this declaration.</p>
</td>
      </tr>
      <tr>
        <td id="DDCssLib_CSSDeclaration_SetValueImportant_DDCssLib_eCSSProperty_" data-uid="DDCssLib.CSSDeclaration.SetValueImportant(DDCssLib.eCSSProperty)">
          <a class="xref" href="DDCssLib.CSSDeclaration.SetValueImportant.html#DDCssLib_CSSDeclaration_SetValueImportant_DDCssLib_eCSSProperty_">SetValueImportant(eCSSProperty)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the value important.</p>
</td>
      </tr>
      <tr>
        <td id="DDCssLib_CSSDeclaration_ToString" data-uid="DDCssLib.CSSDeclaration.ToString">
          <a class="xref" href="DDCssLib.CSSDeclaration.ToString.html#DDCssLib_CSSDeclaration_ToString">ToString()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the propery/value pair(s) contained in this CSSDeclaration in
standards based CSS declaration block syntax.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="extensionmethods">Extension Methods</h3>
  <div>
      <a class="xref" href="GrapeCity.ActiveReports.ReportsCore.Tools.ObjectExtensions.ApplyDefaults.html#GrapeCity_ActiveReports_ReportsCore_Tools_ObjectExtensions_ApplyDefaults__1___0_">ObjectExtensions.ApplyDefaults&lt;TObject&gt;(TObject)</a>
  </div>
  <div>
      <a class="xref" href="GrapeCity.ActiveReports.ReportsCore.Tools.ObjectExtensions.SetValue.html#GrapeCity_ActiveReports_ReportsCore_Tools_ObjectExtensions_SetValue__1___0_System_ComponentModel_PropertyDescriptor_System_String_">ObjectExtensions.SetValue&lt;TObject&gt;(TObject, PropertyDescriptor, string)</a>
  </div>
  <div>
      <a class="xref" href="GrapeCity.ActiveReports.ReportsCore.Tools.ObjectExtensions.ToNameValueCollection.html#GrapeCity_ActiveReports_ReportsCore_Tools_ObjectExtensions_ToNameValueCollection_System_Object_">ObjectExtensions.ToNameValueCollection(object)</a>
  </div>

</div>
