# GrapeCity.Spreadsheet.CellReference

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Spreadsheet_CellReference" data-uid="GrapeCity.Spreadsheet.CellReference" class="text-break">CellReference Struct
</h1>
  <div class="markdown level0 summary"><p>Represents a reference to a position of cell.</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.icomparable-1">IComparable</a>&lt;<a class="xref" href="GrapeCity.Spreadsheet.CellReference.html">CellReference</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iequatable-1">IEquatable</a>&lt;<a class="xref" href="GrapeCity.Spreadsheet.CellReference.html">CellReference</a>&gt;</div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.Spreadsheet.html">GrapeCity.Spreadsheet</a></h6>
  <h6><strong>Assembly</strong>: GrapeCity.Spreadsheet.dll</h6>
  <h5 id="GrapeCity_Spreadsheet_CellReference_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public struct CellReference : IComparable&lt;CellReference&gt;, IEquatable&lt;CellReference&gt;</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Structure CellReference
    Implements IComparable(Of CellReference), IEquatable(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_Spreadsheet_CellReference__ctor_System_Int32_System_Int32_" data-uid="GrapeCity.Spreadsheet.CellReference.#ctor(System.Int32,System.Int32)">
          <a class="xref" href="GrapeCity.Spreadsheet.CellReference.-ctor.html#GrapeCity_Spreadsheet_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.Spreadsheet.Reference.html">Reference</a> class.</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_Spreadsheet_CellReference_Empty" data-uid="GrapeCity.Spreadsheet.CellReference.Empty">
          <a class="xref" href="GrapeCity.Spreadsheet.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_Spreadsheet_CellReference_Column" data-uid="GrapeCity.Spreadsheet.CellReference.Column">
          <a class="xref" href="GrapeCity.Spreadsheet.CellReference.Column.html#GrapeCity_Spreadsheet_CellReference_Column">Column</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the column index.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_CellReference_Row" data-uid="GrapeCity.Spreadsheet.CellReference.Row">
          <a class="xref" href="GrapeCity.Spreadsheet.CellReference.Row.html#GrapeCity_Spreadsheet_CellReference_Row">Row</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the row 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="GrapeCity_Spreadsheet_CellReference_CompareTo_GrapeCity_Spreadsheet_CellReference_" data-uid="GrapeCity.Spreadsheet.CellReference.CompareTo(GrapeCity.Spreadsheet.CellReference)">
          <a class="xref" href="GrapeCity.Spreadsheet.CellReference.CompareTo.html#GrapeCity_Spreadsheet_CellReference_CompareTo_GrapeCity_Spreadsheet_CellReference_">CompareTo(CellReference)</a>
        </td>
        <td class="markdown level1 summary"><p>Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_CellReference_Equals_GrapeCity_Spreadsheet_CellReference_" data-uid="GrapeCity.Spreadsheet.CellReference.Equals(GrapeCity.Spreadsheet.CellReference)">
          <a class="xref" href="GrapeCity.Spreadsheet.CellReference.Equals.html#GrapeCity_Spreadsheet_CellReference_Equals_GrapeCity_Spreadsheet_CellReference_">Equals(CellReference)</a>
        </td>
        <td class="markdown level1 summary"><p>Indicates whether the current object is equal to another object of the same type.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_CellReference_Equals_System_Object_" data-uid="GrapeCity.Spreadsheet.CellReference.Equals(System.Object)">
          <a class="xref" href="GrapeCity.Spreadsheet.CellReference.Equals.html#GrapeCity_Spreadsheet_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_Spreadsheet_CellReference_GetHashCode" data-uid="GrapeCity.Spreadsheet.CellReference.GetHashCode">
          <a class="xref" href="GrapeCity.Spreadsheet.CellReference.GetHashCode.html#GrapeCity_Spreadsheet_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_Spreadsheet_CellReference_IsEmpty" data-uid="GrapeCity.Spreadsheet.CellReference.IsEmpty">
          <a class="xref" href="GrapeCity.Spreadsheet.CellReference.IsEmpty.html#GrapeCity_Spreadsheet_CellReference_IsEmpty">IsEmpty()</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether this <a class="xref" href="GrapeCity.Spreadsheet.CellReference.html">CellReference</a> value is empty.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_CellReference_Offset_System_Int32_System_Int32_" data-uid="GrapeCity.Spreadsheet.CellReference.Offset(System.Int32,System.Int32)">
          <a class="xref" href="GrapeCity.Spreadsheet.CellReference.Offset.html#GrapeCity_Spreadsheet_CellReference_Offset_System_Int32_System_Int32_">Offset(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Translates this <a class="xref" href="GrapeCity.Spreadsheet.CellReference.html">CellReference</a> by the specified amount.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_CellReference_ToString" data-uid="GrapeCity.Spreadsheet.CellReference.ToString">
          <a class="xref" href="GrapeCity.Spreadsheet.CellReference.ToString.html#GrapeCity_Spreadsheet_CellReference_ToString">ToString()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> that represents this reference.</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_Spreadsheet_CellReference_op_Equality_GrapeCity_Spreadsheet_CellReference_GrapeCity_Spreadsheet_CellReference_" data-uid="GrapeCity.Spreadsheet.CellReference.op_Equality(GrapeCity.Spreadsheet.CellReference,GrapeCity.Spreadsheet.CellReference)">
          <a class="xref" href="GrapeCity.Spreadsheet.CellReference.op_Equality.html#GrapeCity_Spreadsheet_CellReference_op_Equality_GrapeCity_Spreadsheet_CellReference_GrapeCity_Spreadsheet_CellReference_">operator ==(CellReference, CellReference)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns whether two <a class="xref" href="GrapeCity.Spreadsheet.CellReference.html">CellReference</a> are equals.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_CellReference_op_Implicit_GrapeCity_CalcEngine_CellReference__GrapeCity_Spreadsheet_CellReference" data-uid="GrapeCity.Spreadsheet.CellReference.op_Implicit(GrapeCity.CalcEngine.CellReference)~GrapeCity.Spreadsheet.CellReference">
          <a class="xref" href="GrapeCity.Spreadsheet.CellReference.op_Implicit.html#GrapeCity_Spreadsheet_CellReference_op_Implicit_GrapeCity_CalcEngine_CellReference__GrapeCity_Spreadsheet_CellReference">implicit operator CellReference(CellReference)</a>
        </td>
        <td class="markdown level1 summary"><p>Performs an implicit conversion from <a class="xref" href="../GrapeCity.CalcEngine/GrapeCity.CalcEngine.CellReference.html">CellReference</a> to <a class="xref" href="GrapeCity.Spreadsheet.CellReference.html">CellReference</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_CellReference_op_Implicit_GrapeCity_Spreadsheet_CellReference__GrapeCity_CalcEngine_CellReference" data-uid="GrapeCity.Spreadsheet.CellReference.op_Implicit(GrapeCity.Spreadsheet.CellReference)~GrapeCity.CalcEngine.CellReference">
          <a class="xref" href="GrapeCity.Spreadsheet.CellReference.op_Implicit.html#GrapeCity_Spreadsheet_CellReference_op_Implicit_GrapeCity_Spreadsheet_CellReference__GrapeCity_CalcEngine_CellReference">implicit operator CellReference(CellReference)</a>
        </td>
        <td class="markdown level1 summary"><p>Performs an implicit conversion from <a class="xref" href="GrapeCity.Spreadsheet.CellReference.html">CellReference</a> to <a class="xref" href="../GrapeCity.CalcEngine/GrapeCity.CalcEngine.CellReference.html">CellReference</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_Spreadsheet_CellReference_op_Inequality_GrapeCity_Spreadsheet_CellReference_GrapeCity_Spreadsheet_CellReference_" data-uid="GrapeCity.Spreadsheet.CellReference.op_Inequality(GrapeCity.Spreadsheet.CellReference,GrapeCity.Spreadsheet.CellReference)">
          <a class="xref" href="GrapeCity.Spreadsheet.CellReference.op_Inequality.html#GrapeCity_Spreadsheet_CellReference_op_Inequality_GrapeCity_Spreadsheet_CellReference_GrapeCity_Spreadsheet_CellReference_">operator !=(CellReference, CellReference)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns whether two <a class="xref" href="GrapeCity.Spreadsheet.CellReference.html">CellReference</a> are not equals.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
