# DDCssLib.CSSValue

## Content

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



  <h1 id="DDCssLib_CSSValue" data-uid="DDCssLib.CSSValue" class="text-break">CSSValue Struct
</h1>
  <div class="markdown level0 summary"><p>Encapsulates a value for a CSSProperty.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <h6><strong>Namespace</strong>: <a class="xref" href=""></a></h6>
  <h6><strong>Assembly</strong>: MESCIUS.ActiveReports.dll</h6>
  <h5 id="DDCssLib_CSSValue_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public struct CSSValue</code></pre>
  </div>
  <h5 id="DDCssLib_CSSValue_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>When callign any of the Get...Value() properties the current unit type must be valid.  Ensure the unit type is valid using CSSValue.Unit.</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_CSSValue__ctor_DDCssLib_eCSSUnit_" data-uid="DDCssLib.CSSValue.#ctor(DDCssLib.eCSSUnit)">
          <a class="xref" href="DDCssLib.CSSValue.-ctor.html#DDCssLib_CSSValue__ctor_DDCssLib_eCSSUnit_">CSSValue(eCSSUnit)</a>
        </td>
        <td class="markdown level1 summary"><p>Constructs the class with the specified unit type.</p>
</td>
      </tr>
      <tr>
        <td id="DDCssLib_CSSValue__ctor_DDCssLib_eCSSUnit_System_Drawing_Color_System_String_" data-uid="DDCssLib.CSSValue.#ctor(DDCssLib.eCSSUnit,System.Drawing.Color,System.String)">
          <a class="xref" href="DDCssLib.CSSValue.-ctor.html#DDCssLib_CSSValue__ctor_DDCssLib_eCSSUnit_System_Drawing_Color_System_String_">CSSValue(eCSSUnit, Color, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Constructs the class with the specified color.</p>
</td>
      </tr>
      <tr>
        <td id="DDCssLib_CSSValue__ctor_System_Int32_DDCssLib_eCSSUnit_" data-uid="DDCssLib.CSSValue.#ctor(System.Int32,DDCssLib.eCSSUnit)">
          <a class="xref" href="DDCssLib.CSSValue.-ctor.html#DDCssLib_CSSValue__ctor_System_Int32_DDCssLib_eCSSUnit_">CSSValue(int, eCSSUnit)</a>
        </td>
        <td class="markdown level1 summary"><p>Constructs the class with the specified unit type, and integer value.</p>
</td>
      </tr>
      <tr>
        <td id="DDCssLib_CSSValue__ctor_System_Single_DDCssLib_eCSSUnit_" data-uid="DDCssLib.CSSValue.#ctor(System.Single,DDCssLib.eCSSUnit)">
          <a class="xref" href="DDCssLib.CSSValue.-ctor.html#DDCssLib_CSSValue__ctor_System_Single_DDCssLib_eCSSUnit_">CSSValue(float, eCSSUnit)</a>
        </td>
        <td class="markdown level1 summary"><p>Constructs the class with the specified unit type, and value.</p>
</td>
      </tr>
      <tr>
        <td id="DDCssLib_CSSValue__ctor_System_String_DDCssLib_eCSSUnit_" data-uid="DDCssLib.CSSValue.#ctor(System.String,DDCssLib.eCSSUnit)">
          <a class="xref" href="DDCssLib.CSSValue.-ctor.html#DDCssLib_CSSValue__ctor_System_String_DDCssLib_eCSSUnit_">CSSValue(string, eCSSUnit)</a>
        </td>
        <td class="markdown level1 summary"><p>Constructs the class with the specified unit type, and string value.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="DDCssLib_CSSValue_Unit" data-uid="DDCssLib.CSSValue.Unit">
          <a class="xref" href="DDCssLib.CSSValue.Unit.html#DDCssLib_CSSValue_Unit">Unit</a>
        </td>
        <td class="markdown level1 summary"><p>Gets/sets the Unit value.</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_CSSValue_CopyFrom_DDCssLib_CSSValue_" data-uid="DDCssLib.CSSValue.CopyFrom(DDCssLib.CSSValue)">
          <a class="xref" href="DDCssLib.CSSValue.CopyFrom.html#DDCssLib_CSSValue_CopyFrom_DDCssLib_CSSValue_">CopyFrom(CSSValue)</a>
        </td>
        <td class="markdown level1 summary"><p>Performs a &quot;deep copy&quot; (memebers and child memebers) the specified CSSValue to this CSSValue instance.</p>
</td>
      </tr>
      <tr>
        <td id="DDCssLib_CSSValue_Equals_System_Object_" data-uid="DDCssLib.CSSValue.Equals(System.Object)">
          <a class="xref" href="DDCssLib.CSSValue.Equals.html#DDCssLib_CSSValue_Equals_System_Object_">Equals(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Override of System.Object.Equals().  Checks for value equality of the
Unit and actual Value contained in this object.</p>
</td>
      </tr>
      <tr>
        <td id="DDCssLib_CSSValue_GetColorValue" data-uid="DDCssLib.CSSValue.GetColorValue">
          <a class="xref" href="DDCssLib.CSSValue.GetColorValue.html#DDCssLib_CSSValue_GetColorValue">GetColorValue()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the current color value as a Color object.  If the current unit type is string it will be
converted using ColorTranslator.FromHtml().
If the current value is a Color it is returned directly.</p>
</td>
      </tr>
      <tr>
        <td id="DDCssLib_CSSValue_GetFloatValue" data-uid="DDCssLib.CSSValue.GetFloatValue">
          <a class="xref" href="DDCssLib.CSSValue.GetFloatValue.html#DDCssLib_CSSValue_GetFloatValue">GetFloatValue()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a value as a float.</p>
</td>
      </tr>
      <tr>
        <td id="DDCssLib_CSSValue_GetHashCode" data-uid="DDCssLib.CSSValue.GetHashCode">
          <a class="xref" href="DDCssLib.CSSValue.GetHashCode.html#DDCssLib_CSSValue_GetHashCode">GetHashCode()</a>
        </td>
        <td class="markdown level1 summary"><p>Provides a hashcode by XORing the Unit.GetHashCode() and {value}.GetHashCode().</p>
</td>
      </tr>
      <tr>
        <td id="DDCssLib_CSSValue_GetIntValue" data-uid="DDCssLib.CSSValue.GetIntValue">
          <a class="xref" href="DDCssLib.CSSValue.GetIntValue.html#DDCssLib_CSSValue_GetIntValue">GetIntValue()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns an integer value.</p>
</td>
      </tr>
      <tr>
        <td id="DDCssLib_CSSValue_GetLengthPixels_System_Single_" data-uid="DDCssLib.CSSValue.GetLengthPixels(System.Single)">
          <a class="xref" href="DDCssLib.CSSValue.GetLengthPixels.html#DDCssLib_CSSValue_GetLengthPixels_System_Single_">GetLengthPixels(float)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a length value in pixel units.</p>
</td>
      </tr>
      <tr>
        <td id="DDCssLib_CSSValue_GetLengthTwips_System_Single_" data-uid="DDCssLib.CSSValue.GetLengthTwips(System.Single)">
          <a class="xref" href="DDCssLib.CSSValue.GetLengthTwips.html#DDCssLib_CSSValue_GetLengthTwips_System_Single_">GetLengthTwips(float)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a length value in twip units.</p>
</td>
      </tr>
      <tr>
        <td id="DDCssLib_CSSValue_GetPercentValue" data-uid="DDCssLib.CSSValue.GetPercentValue">
          <a class="xref" href="DDCssLib.CSSValue.GetPercentValue.html#DDCssLib_CSSValue_GetPercentValue">GetPercentValue()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the current percent value as a float.</p>
</td>
      </tr>
      <tr>
        <td id="DDCssLib_CSSValue_GetStringValue" data-uid="DDCssLib.CSSValue.GetStringValue">
          <a class="xref" href="DDCssLib.CSSValue.GetStringValue.html#DDCssLib_CSSValue_GetStringValue">GetStringValue()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the current string value.</p>
</td>
      </tr>
      <tr>
        <td id="DDCssLib_CSSValue_IsAngularUnit" data-uid="DDCssLib.CSSValue.IsAngularUnit">
          <a class="xref" href="DDCssLib.CSSValue.IsAngularUnit.html#DDCssLib_CSSValue_IsAngularUnit">IsAngularUnit()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns true if the unit type is currently a valid Angle unit.</p>
</td>
      </tr>
      <tr>
        <td id="DDCssLib_CSSValue_IsColorUnit" data-uid="DDCssLib.CSSValue.IsColorUnit">
          <a class="xref" href="DDCssLib.CSSValue.IsColorUnit.html#DDCssLib_CSSValue_IsColorUnit">IsColorUnit()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns true if the unit type is current a valid color unit (eCSSUnit.Color_Hex or eCSSUnit.Color_Name or eCSSUnit.Color_RGBFunc or eCSSUnit.Color_System).</p>
</td>
      </tr>
      <tr>
        <td id="DDCssLib_CSSValue_IsFixedLengthUnit" data-uid="DDCssLib.CSSValue.IsFixedLengthUnit">
          <a class="xref" href="DDCssLib.CSSValue.IsFixedLengthUnit.html#DDCssLib_CSSValue_IsFixedLengthUnit">IsFixedLengthUnit()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns true if the unit type is currently a valid fixed length unit.</p>
</td>
      </tr>
      <tr>
        <td id="DDCssLib_CSSValue_IsFrequencyUnit" data-uid="DDCssLib.CSSValue.IsFrequencyUnit">
          <a class="xref" href="DDCssLib.CSSValue.IsFrequencyUnit.html#DDCssLib_CSSValue_IsFrequencyUnit">IsFrequencyUnit()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns true if the current unit type is a valid Frequency unit.</p>
</td>
      </tr>
      <tr>
        <td id="DDCssLib_CSSValue_IsLengthUnit" data-uid="DDCssLib.CSSValue.IsLengthUnit">
          <a class="xref" href="DDCssLib.CSSValue.IsLengthUnit.html#DDCssLib_CSSValue_IsLengthUnit">IsLengthUnit()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns true if the unit type is currently a valid length unit (fixed or relative).</p>
</td>
      </tr>
      <tr>
        <td id="DDCssLib_CSSValue_IsRelativeLengthUnit" data-uid="DDCssLib.CSSValue.IsRelativeLengthUnit">
          <a class="xref" href="DDCssLib.CSSValue.IsRelativeLengthUnit.html#DDCssLib_CSSValue_IsRelativeLengthUnit">IsRelativeLengthUnit()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns true if the unit type is currently a valid relative length unit.</p>
</td>
      </tr>
      <tr>
        <td id="DDCssLib_CSSValue_IsTimeUnit" data-uid="DDCssLib.CSSValue.IsTimeUnit">
          <a class="xref" href="DDCssLib.CSSValue.IsTimeUnit.html#DDCssLib_CSSValue_IsTimeUnit">IsTimeUnit()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns true if the current unit type is a valid time unit.</p>
</td>
      </tr>
      <tr>
        <td id="DDCssLib_CSSValue_Reset" data-uid="DDCssLib.CSSValue.Reset">
          <a class="xref" href="DDCssLib.CSSValue.Reset.html#DDCssLib_CSSValue_Reset">Reset()</a>
        </td>
        <td class="markdown level1 summary"><p>Resets this current value.  Sets all value members to their appropriate
empty equivelent (numbers are set to 0), and sets the current Unit type to eCSSUnit.Null.</p>
</td>
      </tr>
      <tr>
        <td id="DDCssLib_CSSValue_SetAutoValue" data-uid="DDCssLib.CSSValue.SetAutoValue">
          <a class="xref" href="DDCssLib.CSSValue.SetAutoValue.html#DDCssLib_CSSValue_SetAutoValue">SetAutoValue()</a>
        </td>
        <td class="markdown level1 summary"><p>Specifies that this CSSValue's value is the CSS keyword 'auto'.</p>
</td>
      </tr>
      <tr>
        <td id="DDCssLib_CSSValue_SetColorValue_DDCssLib_eCSSUnit_System_Drawing_Color_System_String_" data-uid="DDCssLib.CSSValue.SetColorValue(DDCssLib.eCSSUnit,System.Drawing.Color,System.String)">
          <a class="xref" href="DDCssLib.CSSValue.SetColorValue.html#DDCssLib_CSSValue_SetColorValue_DDCssLib_eCSSUnit_System_Drawing_Color_System_String_">SetColorValue(eCSSUnit, Color, string)</a>
        </td>
        <td 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>
</td>
      </tr>
      <tr>
        <td id="DDCssLib_CSSValue_SetFloatValue_System_Single_DDCssLib_eCSSUnit_" data-uid="DDCssLib.CSSValue.SetFloatValue(System.Single,DDCssLib.eCSSUnit)">
          <a class="xref" href="DDCssLib.CSSValue.SetFloatValue.html#DDCssLib_CSSValue_SetFloatValue_System_Single_DDCssLib_eCSSUnit_">SetFloatValue(float, eCSSUnit)</a>
        </td>
        <td class="markdown level1 summary"><p>Specifies this current value as a float.</p>
</td>
      </tr>
      <tr>
        <td id="DDCssLib_CSSValue_SetInheritValue" data-uid="DDCssLib.CSSValue.SetInheritValue">
          <a class="xref" href="DDCssLib.CSSValue.SetInheritValue.html#DDCssLib_CSSValue_SetInheritValue">SetInheritValue()</a>
        </td>
        <td class="markdown level1 summary"><p>Indicates that this value is not null, not none, but should be inherited from the
parent object of the object who's style this value is applied to.<br>
In CSS this is the default value for many <em>child</em> elements's (but certainly not all)
style properties who's style is not specified.</p>
</td>
      </tr>
      <tr>
        <td id="DDCssLib_CSSValue_SetIntValue_System_Int32_DDCssLib_eCSSUnit_" data-uid="DDCssLib.CSSValue.SetIntValue(System.Int32,DDCssLib.eCSSUnit)">
          <a class="xref" href="DDCssLib.CSSValue.SetIntValue.html#DDCssLib_CSSValue_SetIntValue_System_Int32_DDCssLib_eCSSUnit_">SetIntValue(int, eCSSUnit)</a>
        </td>
        <td class="markdown level1 summary"><p>Specifies the value as an integer.</p>
</td>
      </tr>
      <tr>
        <td id="DDCssLib_CSSValue_SetNoneValue" data-uid="DDCssLib.CSSValue.SetNoneValue">
          <a class="xref" href="DDCssLib.CSSValue.SetNoneValue.html#DDCssLib_CSSValue_SetNoneValue">SetNoneValue()</a>
        </td>
        <td class="markdown level1 summary"><p>Sets this class's value to the special CSS value 'none'
(e.g. border properties, background-image, display, etc...).</p>
</td>
      </tr>
      <tr>
        <td id="DDCssLib_CSSValue_SetNormalValue" data-uid="DDCssLib.CSSValue.SetNormalValue">
          <a class="xref" href="DDCssLib.CSSValue.SetNormalValue.html#DDCssLib_CSSValue_SetNormalValue">SetNormalValue()</a>
        </td>
        <td class="markdown level1 summary"><p>Sets this class'es value to the special CSS value 'normal'.
(e.g. font-style, font-variant, font-weight, word-spacing, letter-spacing, line-height).</p>
</td>
      </tr>
      <tr>
        <td id="DDCssLib_CSSValue_SetPercentValue_System_Single_" data-uid="DDCssLib.CSSValue.SetPercentValue(System.Single)">
          <a class="xref" href="DDCssLib.CSSValue.SetPercentValue.html#DDCssLib_CSSValue_SetPercentValue_System_Single_">SetPercentValue(float)</a>
        </td>
        <td class="markdown level1 summary"><p>Specifies the value as a percent.</p>
</td>
      </tr>
      <tr>
        <td id="DDCssLib_CSSValue_SetStringValue_System_String_DDCssLib_eCSSUnit_" data-uid="DDCssLib.CSSValue.SetStringValue(System.String,DDCssLib.eCSSUnit)">
          <a class="xref" href="DDCssLib.CSSValue.SetStringValue.html#DDCssLib_CSSValue_SetStringValue_System_String_DDCssLib_eCSSUnit_">SetStringValue(string, eCSSUnit)</a>
        </td>
        <td class="markdown level1 summary"><p>Specifies this class's current value as a string.</p>
</td>
      </tr>
      <tr>
        <td id="DDCssLib_CSSValue_ToDebugString" data-uid="DDCssLib.CSSValue.ToDebugString">
          <a class="xref" href="DDCssLib.CSSValue.ToDebugString.html#DDCssLib_CSSValue_ToDebugString">ToDebugString()</a>
        </td>
        <td class="markdown level1 summary"><p>Writes out the current unit type and value in a string formatted appropriately for debugging purposes.</p>
</td>
      </tr>
      <tr>
        <td id="DDCssLib_CSSValue_ToString" data-uid="DDCssLib.CSSValue.ToString">
          <a class="xref" href="DDCssLib.CSSValue.ToString.html#DDCssLib_CSSValue_ToString">ToString()</a>
        </td>
        <td class="markdown level1 summary"><p>Writes out this class's current value in string form.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="operators">Operators
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="DDCssLib_CSSValue_op_Equality_DDCssLib_CSSValue_DDCssLib_CSSValue_" data-uid="DDCssLib.CSSValue.op_Equality(DDCssLib.CSSValue,DDCssLib.CSSValue)">
          <a class="xref" href="DDCssLib.CSSValue.op_Equality.html#DDCssLib_CSSValue_op_Equality_DDCssLib_CSSValue_DDCssLib_CSSValue_">operator ==(CSSValue, CSSValue)</a>
        </td>
        <td class="markdown level1 summary"><p>After checking arguments for null, uses valA.Equals(valB).<br>
If either argument is null, the return will be false.</p>
</td>
      </tr>
      <tr>
        <td id="DDCssLib_CSSValue_op_Inequality_DDCssLib_CSSValue_DDCssLib_CSSValue_" data-uid="DDCssLib.CSSValue.op_Inequality(DDCssLib.CSSValue,DDCssLib.CSSValue)">
          <a class="xref" href="DDCssLib.CSSValue.op_Inequality.html#DDCssLib_CSSValue_op_Inequality_DDCssLib_CSSValue_DDCssLib_CSSValue_">operator !=(CSSValue, CSSValue)</a>
        </td>
        <td class="markdown level1 summary"><p>After checking both arguments for null, uses !valA.Equals(valB).
If either argument is null, true will be returned.</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>
