# FarPoint.Win.Spread.CompareValueBaseValidator

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="FarPoint_Win_Spread_CompareValueBaseValidator" data-uid="FarPoint.Win.Spread.CompareValueBaseValidator" class="text-break">CompareValueBaseValidator Class
</h1>
  <div class="markdown level0 summary"><p>Represents a special <a class="xref" href="FarPoint.Win.Spread.BaseDataValidator.html">BaseDataValidator</a> implementation that validates whether the specified and compared values satisfy the given comparison relationship.</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"><a class="xref" href="FarPoint.Win.Spread.BaseDataValidator.html">BaseDataValidator</a></div>
    <div class="level2"><span class="xref">CompareValueBaseValidator</span></div>
      <div class="level3"><a class="xref" href="FarPoint.Win.Spread.CompareCellValidator.html">CompareCellValidator</a></div>
      <div class="level3"><a class="xref" href="FarPoint.Win.Spread.CompareValueValidator.html">CompareValueValidator</a></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.icloneable">ICloneable</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.runtime.serialization.iserializable">ISerializable</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.runtime.serialization.ideserializationcallback">IDeserializationCallback</a></div>
    <div><a class="xref" href="../FarPoint.Win/FarPoint.Win.ISerializeSupport.html">ISerializeSupport</a></div>
    <div><a class="xref" href="FarPoint.Win.Spread.INamedObject.html">INamedObject</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="FarPoint.Win.Spread.html">FarPoint.Win.Spread</a></h6>
  <h6><strong>Assembly</strong>: FarPoint.Win.Spread.dll</h6>
  <h5 id="FarPoint_Win_Spread_CompareValueBaseValidator_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public abstract class CompareValueBaseValidator : BaseDataValidator, ICloneable, ISerializable, IDeserializationCallback, ISerializeSupport, INamedObject</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public MustInherit Class CompareValueBaseValidator
    Inherits BaseDataValidator
    Implements ICloneable, ISerializable, IDeserializationCallback, ISerializeSupport, INamedObject</code></pre>
  </div>
  <h5 id="FarPoint_Win_Spread_CompareValueBaseValidator_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>Inheriting this class is not recommended.</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="FarPoint_Win_Spread_CompareValueBaseValidator__ctor" data-uid="FarPoint.Win.Spread.CompareValueBaseValidator.#ctor">
          <a class="xref" href="FarPoint.Win.Spread.CompareValueBaseValidator.-ctor.html#FarPoint_Win_Spread_CompareValueBaseValidator__ctor">CompareValueBaseValidator()</a>
        </td>
        <td class="markdown level1 summary"><p>Represents the default empty constructor.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_CompareValueBaseValidator__ctor_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_" data-uid="FarPoint.Win.Spread.CompareValueBaseValidator.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
          <a class="xref" href="FarPoint.Win.Spread.CompareValueBaseValidator.-ctor.html#FarPoint_Win_Spread_CompareValueBaseValidator__ctor_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_">CompareValueBaseValidator(SerializationInfo, StreamingContext)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of this class.</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="FarPoint_Win_Spread_CompareValueBaseValidator_ComparedOperator" data-uid="FarPoint.Win.Spread.CompareValueBaseValidator.ComparedOperator">
          <a class="xref" href="FarPoint.Win.Spread.CompareValueBaseValidator.ComparedOperator.html#FarPoint_Win_Spread_CompareValueBaseValidator_ComparedOperator">ComparedOperator</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that indicates the comparison relationship of the specified and compared values.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_CompareValueBaseValidator_DifferenceValue" data-uid="FarPoint.Win.Spread.CompareValueBaseValidator.DifferenceValue">
          <a class="xref" href="FarPoint.Win.Spread.CompareValueBaseValidator.DifferenceValue.html#FarPoint_Win_Spread_CompareValueBaseValidator_DifferenceValue">DifferenceValue</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the difference between the specified and compared values.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_CompareValueBaseValidator_NullIsValid" data-uid="FarPoint.Win.Spread.CompareValueBaseValidator.NullIsValid">
          <a class="xref" href="FarPoint.Win.Spread.CompareValueBaseValidator.NullIsValid.html#FarPoint_Win_Spread_CompareValueBaseValidator_NullIsValid">NullIsValid</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the validation always succeeds when the specified value is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a>.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_CompareValueBaseValidator_RequiredType" data-uid="FarPoint.Win.Spread.CompareValueBaseValidator.RequiredType">
          <a class="xref" href="FarPoint.Win.Spread.CompareValueBaseValidator.RequiredType.html#FarPoint_Win_Spread_CompareValueBaseValidator_RequiredType">RequiredType</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the specified value's required <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.type">Type</a>.</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="FarPoint_Win_Spread_CompareValueBaseValidator_Deserialize_System_Xml_XmlNodeReader_" data-uid="FarPoint.Win.Spread.CompareValueBaseValidator.Deserialize(System.Xml.XmlNodeReader)">
          <a class="xref" href="FarPoint.Win.Spread.CompareValueBaseValidator.Deserialize.html#FarPoint_Win_Spread_CompareValueBaseValidator_Deserialize_System_Xml_XmlNodeReader_">Deserialize(XmlNodeReader)</a>
        </td>
        <td class="markdown level1 summary"><p>Loads the object from XML.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_CompareValueBaseValidator_GetObjectData_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_" data-uid="FarPoint.Win.Spread.CompareValueBaseValidator.GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
          <a class="xref" href="FarPoint.Win.Spread.CompareValueBaseValidator.GetObjectData.html#FarPoint_Win_Spread_CompareValueBaseValidator_GetObjectData_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_">GetObjectData(SerializationInfo, StreamingContext)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the object data.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_CompareValueBaseValidator_Serialize_System_Xml_XmlTextWriter_" data-uid="FarPoint.Win.Spread.CompareValueBaseValidator.Serialize(System.Xml.XmlTextWriter)">
          <a class="xref" href="FarPoint.Win.Spread.CompareValueBaseValidator.Serialize.html#FarPoint_Win_Spread_CompareValueBaseValidator_Serialize_System_Xml_XmlTextWriter_">Serialize(XmlTextWriter)</a>
        </td>
        <td class="markdown level1 summary"><p>Saves the object to XML.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_CompareValueBaseValidator_Validate_FarPoint_Win_Spread_ValidateActionContext_" data-uid="FarPoint.Win.Spread.CompareValueBaseValidator.Validate(FarPoint.Win.Spread.ValidateActionContext)">
          <a class="xref" href="FarPoint.Win.Spread.CompareValueBaseValidator.Validate.html#FarPoint_Win_Spread_CompareValueBaseValidator_Validate_FarPoint_Win_Spread_ValidateActionContext_">Validate(ValidateActionContext)</a>
        </td>
        <td class="markdown level1 summary"><p>Validates whether the specified value and compared value satisfy the given comparison relationship.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
