# FarPoint.Win.Spread.CompareCellValidator

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="FarPoint_Win_Spread_CompareCellValidator" data-uid="FarPoint.Win.Spread.CompareCellValidator" class="text-break">CompareCellValidator Class
</h1>
  <div class="markdown level0 summary"><p>Represents a special <a class="xref" href="FarPoint.Win.Spread.CompareValueBaseValidator.html">CompareValueBaseValidator</a> that validates whether
the specified value and target <a class="xref" href="FarPoint.Win.Spread.Cell.html">Cell</a>'s value meet the given comparison criteria.</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"><a class="xref" href="FarPoint.Win.Spread.CompareValueBaseValidator.html">CompareValueBaseValidator</a></div>
    <div class="level3"><span class="xref">CompareCellValidator</span></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_CompareCellValidator_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[ToolboxBitmap(typeof(FpSpread), &quot;CompareCellValidator.png&quot;)]
[TypeConverter(typeof(CompareCellValidator._a))]
public class CompareCellValidator : CompareValueBaseValidator, ICloneable, ISerializable, IDeserializationCallback, ISerializeSupport, INamedObject</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;ToolboxBitmap(GetType(FpSpread), &quot;CompareCellValidator.png&quot;)&gt;
&lt;TypeConverter(GetType(CompareCellValidator._a))&gt;
Public Class CompareCellValidator
    Inherits CompareValueBaseValidator
    Implements ICloneable, ISerializable, IDeserializationCallback, ISerializeSupport, INamedObject</code></pre>
  </div>
  <h5 id="FarPoint_Win_Spread_CompareCellValidator_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>This CellValidator compares the validated value to a specified cell's value.</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_CompareCellValidator__ctor" data-uid="FarPoint.Win.Spread.CompareCellValidator.#ctor">
          <a class="xref" href="FarPoint.Win.Spread.CompareCellValidator.-ctor.html#FarPoint_Win_Spread_CompareCellValidator__ctor">CompareCellValidator()</a>
        </td>
        <td class="markdown level1 summary"><p>Represents the default empty constructor.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_CompareCellValidator__ctor_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_" data-uid="FarPoint.Win.Spread.CompareCellValidator.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
          <a class="xref" href="FarPoint.Win.Spread.CompareCellValidator.-ctor.html#FarPoint_Win_Spread_CompareCellValidator__ctor_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_">CompareCellValidator(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_CompareCellValidator_Column" data-uid="FarPoint.Win.Spread.CompareCellValidator.Column">
          <a class="xref" href="FarPoint.Win.Spread.CompareCellValidator.Column.html#FarPoint_Win_Spread_CompareCellValidator_Column">Column</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the compared column's index.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_CompareCellValidator_Row" data-uid="FarPoint.Win.Spread.CompareCellValidator.Row">
          <a class="xref" href="FarPoint.Win.Spread.CompareCellValidator.Row.html#FarPoint_Win_Spread_CompareCellValidator_Row">Row</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the compared row's index.</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_CompareCellValidator_Clone_GrapeCity_Spreadsheet_Conditional_ConditionalObjects_GrapeCity_Spreadsheet_DataValidator_GrapeCity_Spreadsheet_DataValidation_GrapeCity_Spreadsheet_DataValidationExecutedResult__ConditionalObject_GrapeCity_CalcEngine_FormulaEngine_GrapeCity_CalcEngine_FormulaEngine_" data-uid="FarPoint.Win.Spread.CompareCellValidator.Clone(GrapeCity.Spreadsheet.Conditional.ConditionalObjects{GrapeCity.Spreadsheet.DataValidator,GrapeCity.Spreadsheet.DataValidation,GrapeCity.Spreadsheet.DataValidationExecutedResult}.ConditionalObject,GrapeCity.CalcEngine.FormulaEngine,GrapeCity.CalcEngine.FormulaEngine)">
          <a class="xref" href="FarPoint.Win.Spread.CompareCellValidator.Clone.html#FarPoint_Win_Spread_CompareCellValidator_Clone_GrapeCity_Spreadsheet_Conditional_ConditionalObjects_GrapeCity_Spreadsheet_DataValidator_GrapeCity_Spreadsheet_DataValidation_GrapeCity_Spreadsheet_DataValidationExecutedResult__ConditionalObject_GrapeCity_CalcEngine_FormulaEngine_GrapeCity_CalcEngine_FormulaEngine_">Clone(ConditionalObject, FormulaEngine, FormulaEngine)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates an exact copy of the current <a class="xref" href="FarPoint.Win.Spread.CompareCellValidator.html">CompareCellValidator</a>.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_CompareCellValidator_Deserialize_System_Xml_XmlNodeReader_" data-uid="FarPoint.Win.Spread.CompareCellValidator.Deserialize(System.Xml.XmlNodeReader)">
          <a class="xref" href="FarPoint.Win.Spread.CompareCellValidator.Deserialize.html#FarPoint_Win_Spread_CompareCellValidator_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_CompareCellValidator_GetObjectData_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_" data-uid="FarPoint.Win.Spread.CompareCellValidator.GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
          <a class="xref" href="FarPoint.Win.Spread.CompareCellValidator.GetObjectData.html#FarPoint_Win_Spread_CompareCellValidator_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_CompareCellValidator_Serialize_System_Xml_XmlTextWriter_" data-uid="FarPoint.Win.Spread.CompareCellValidator.Serialize(System.Xml.XmlTextWriter)">
          <a class="xref" href="FarPoint.Win.Spread.CompareCellValidator.Serialize.html#FarPoint_Win_Spread_CompareCellValidator_Serialize_System_Xml_XmlTextWriter_">Serialize(XmlTextWriter)</a>
        </td>
        <td class="markdown level1 summary"><p>Saves the object to XML.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
