# GrapeCity.CalcEngine.CellReference

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_CalcEngine_CellReference" data-uid="GrapeCity.CalcEngine.CellReference" class="text-break">CellReference Struct
</h1>
  <div class="markdown level0 summary"><p>Represents a contextual cell reference.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iequatable-1">IEquatable</a>&lt;<a class="xref" href="GrapeCity.CalcEngine.CellReference.html">CellReference</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.icomparable-1">IComparable</a>&lt;<a class="xref" href="GrapeCity.CalcEngine.CellReference.html">CellReference</a>&gt;</div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.CalcEngine.html">GrapeCity.CalcEngine</a></h6>
  <h6><strong>Assembly</strong>: GrapeCity.CalcEngine.dll</h6>
  <h5 id="GrapeCity_CalcEngine_CellReference_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public struct CellReference : IEquatable&lt;CellReference&gt;, IComparable&lt;CellReference&gt;</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Structure CellReference
    Implements IEquatable(Of CellReference), IComparable(Of CellReference)</code></pre>
  </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="GrapeCity_CalcEngine_CellReference__ctor_System_Int32_System_Int32_" data-uid="GrapeCity.CalcEngine.CellReference.#ctor(System.Int32,System.Int32)">
          <a class="xref" href="GrapeCity.CalcEngine.CellReference.-ctor.html#GrapeCity_CalcEngine_CellReference__ctor_System_Int32_System_Int32_">CellReference(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.CalcEngine.CellReference.html">CellReference</a> struct which represents an absolute cell reference.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_CalcEngine_CellReference__ctor_System_Int32_System_Int32_GrapeCity_CalcEngine_CellRelation_" data-uid="GrapeCity.CalcEngine.CellReference.#ctor(System.Int32,System.Int32,GrapeCity.CalcEngine.CellRelation)">
          <a class="xref" href="GrapeCity.CalcEngine.CellReference.-ctor.html#GrapeCity_CalcEngine_CellReference__ctor_System_Int32_System_Int32_GrapeCity_CalcEngine_CellRelation_">CellReference(int, int, CellRelation)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.CalcEngine.CellReference.html">CellReference</a> struct.</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="GrapeCity_CalcEngine_CellReference_Empty" data-uid="GrapeCity.CalcEngine.CellReference.Empty">
          <a class="xref" href="GrapeCity.CalcEngine.CellReference.Empty.html">Empty</a>
        </td>
        <td class="markdown level1 summary"><p>Empty CellReference instance.</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="GrapeCity_CalcEngine_CellReference_Column" data-uid="GrapeCity.CalcEngine.CellReference.Column">
          <a class="xref" href="GrapeCity.CalcEngine.CellReference.Column.html#GrapeCity_CalcEngine_CellReference_Column">Column</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the index of the column.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_CalcEngine_CellReference_Relation" data-uid="GrapeCity.CalcEngine.CellReference.Relation">
          <a class="xref" href="GrapeCity.CalcEngine.CellReference.Relation.html#GrapeCity_CalcEngine_CellReference_Relation">Relation</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the relative of this <a class="xref" href="GrapeCity.CalcEngine.CellReference.html">CellReference</a> with the source.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_CalcEngine_CellReference_Row" data-uid="GrapeCity.CalcEngine.CellReference.Row">
          <a class="xref" href="GrapeCity.CalcEngine.CellReference.Row.html#GrapeCity_CalcEngine_CellReference_Row">Row</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the index of the row.</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="GrapeCity_CalcEngine_CellReference_CompareTo_GrapeCity_CalcEngine_CellReference_" data-uid="GrapeCity.CalcEngine.CellReference.CompareTo(GrapeCity.CalcEngine.CellReference)">
          <a class="xref" href="GrapeCity.CalcEngine.CellReference.CompareTo.html#GrapeCity_CalcEngine_CellReference_CompareTo_GrapeCity_CalcEngine_CellReference_">CompareTo(CellReference)</a>
        </td>
        <td class="markdown level1 summary"><p>Compares the current <a class="xref" href="GrapeCity.CalcEngine.CellReference.html">CellReference</a> with another <a class="xref" href="GrapeCity.CalcEngine.CellReference.html">CellReference</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_CalcEngine_CellReference_Equals_GrapeCity_CalcEngine_CellReference_" data-uid="GrapeCity.CalcEngine.CellReference.Equals(GrapeCity.CalcEngine.CellReference)">
          <a class="xref" href="GrapeCity.CalcEngine.CellReference.Equals.html#GrapeCity_CalcEngine_CellReference_Equals_GrapeCity_CalcEngine_CellReference_">Equals(CellReference)</a>
        </td>
        <td class="markdown level1 summary"><p>Indicates whether the current <a class="xref" href="GrapeCity.CalcEngine.CellReference.html">CellReference</a> is equal to another <a class="xref" href="GrapeCity.CalcEngine.CellReference.html">CellReference</a> of the same type.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_CalcEngine_CellReference_Equals_System_Object_" data-uid="GrapeCity.CalcEngine.CellReference.Equals(System.Object)">
          <a class="xref" href="GrapeCity.CalcEngine.CellReference.Equals.html#GrapeCity_CalcEngine_CellReference_Equals_System_Object_">Equals(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the specified <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a> is equal to this instance.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_CalcEngine_CellReference_GetHashCode" data-uid="GrapeCity.CalcEngine.CellReference.GetHashCode">
          <a class="xref" href="GrapeCity.CalcEngine.CellReference.GetHashCode.html#GrapeCity_CalcEngine_CellReference_GetHashCode">GetHashCode()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a hash code for this instance.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_CalcEngine_CellReference_SwitchReferenceType" data-uid="GrapeCity.CalcEngine.CellReference.SwitchReferenceType">
          <a class="xref" href="GrapeCity.CalcEngine.CellReference.SwitchReferenceType.html#GrapeCity_CalcEngine_CellReference_SwitchReferenceType">SwitchReferenceType()</a>
        </td>
        <td class="markdown level1 summary"><p>Switch the reference type of this <a class="xref" href="GrapeCity.CalcEngine.CellReference.html">CellReference</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_CalcEngine_CellReference_SwitchReferenceType_GrapeCity_CalcEngine_CellRelation_" data-uid="GrapeCity.CalcEngine.CellReference.SwitchReferenceType(GrapeCity.CalcEngine.CellRelation)">
          <a class="xref" href="GrapeCity.CalcEngine.CellReference.SwitchReferenceType.html#GrapeCity_CalcEngine_CellReference_SwitchReferenceType_GrapeCity_CalcEngine_CellRelation_">SwitchReferenceType(CellRelation)</a>
        </td>
        <td class="markdown level1 summary"><p>Switch the reference type of this <a class="xref" href="GrapeCity.CalcEngine.CellReference.html">CellReference</a> to the specified.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_CalcEngine_CellReference_ToAbsolute_System_Int32_System_Int32_" data-uid="GrapeCity.CalcEngine.CellReference.ToAbsolute(System.Int32,System.Int32)">
          <a class="xref" href="GrapeCity.CalcEngine.CellReference.ToAbsolute.html#GrapeCity_CalcEngine_CellReference_ToAbsolute_System_Int32_System_Int32_">ToAbsolute(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the absolute reference of the <a class="xref" href="GrapeCity.CalcEngine.CellReference.html">CellReference</a> object which relates with the context cell
(specified by <code class="paramref">contextRow</code> and <code class="paramref">contextColumn</code>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_CalcEngine_CellReference_ToRelative_System_Int32_System_Int32_" data-uid="GrapeCity.CalcEngine.CellReference.ToRelative(System.Int32,System.Int32)">
          <a class="xref" href="GrapeCity.CalcEngine.CellReference.ToRelative.html#GrapeCity_CalcEngine_CellReference_ToRelative_System_Int32_System_Int32_">ToRelative(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the target reference of the <a class="xref" href="GrapeCity.CalcEngine.CellReference.html">CellReference</a> object which relates with the context cell
(specified by <code class="paramref">contextRow</code> and <code class="paramref">contextColumn</code>.
Position state of the <a class="xref" href="GrapeCity.CalcEngine.CellReference.html">CellReference</a> is unchanged.</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="GrapeCity_CalcEngine_CellReference_op_Equality_GrapeCity_CalcEngine_CellReference_GrapeCity_CalcEngine_CellReference_" data-uid="GrapeCity.CalcEngine.CellReference.op_Equality(GrapeCity.CalcEngine.CellReference,GrapeCity.CalcEngine.CellReference)">
          <a class="xref" href="GrapeCity.CalcEngine.CellReference.op_Equality.html#GrapeCity_CalcEngine_CellReference_op_Equality_GrapeCity_CalcEngine_CellReference_GrapeCity_CalcEngine_CellReference_">operator ==(CellReference, CellReference)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns whether two <a class="xref" href="GrapeCity.CalcEngine.CellReference.html">CellReference</a> are equals.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_CalcEngine_CellReference_op_Inequality_GrapeCity_CalcEngine_CellReference_GrapeCity_CalcEngine_CellReference_" data-uid="GrapeCity.CalcEngine.CellReference.op_Inequality(GrapeCity.CalcEngine.CellReference,GrapeCity.CalcEngine.CellReference)">
          <a class="xref" href="GrapeCity.CalcEngine.CellReference.op_Inequality.html#GrapeCity_CalcEngine_CellReference_op_Inequality_GrapeCity_CalcEngine_CellReference_GrapeCity_CalcEngine_CellReference_">operator !=(CellReference, CellReference)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns whether two <a class="xref" href="GrapeCity.CalcEngine.CellReference.html">CellReference</a> are not equals.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
