# GrapeCity.CalcEngine.RangeReference.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_CalcEngine_RangeReference__ctor_" data-uid="GrapeCity.CalcEngine.RangeReference.#ctor*">RangeReference Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_CalcEngine_RangeReference__ctor_" data-uid="GrapeCity.CalcEngine.RangeReference.#ctor*"></a>
<h4 id="GrapeCity_CalcEngine_RangeReference__ctor_System_Int32_System_Int32_GrapeCity_CalcEngine_CellRelation_" data-uid="GrapeCity.CalcEngine.RangeReference.#ctor(System.Int32,System.Int32,GrapeCity.CalcEngine.CellRelation)">RangeReference(int, int, CellRelation)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.CalcEngine.RangeReference.html">RangeReference</a> struct.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public RangeReference(int row, int column, CellRelation position)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(row As Integer, column As Integer, position As CellRelation)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">row</span></td>
      <td><p>An integer value indicates the row index.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">column</span></td>
      <td><p>An integer value indicates the column index.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.CalcEngine.CellRelation.html">CellRelation</a></td>
      <td><span class="parametername">position</span></td>
      <td><p>A <a class="xref" href="GrapeCity.CalcEngine.CellRelation.html">CellRelation</a> value indicates whether the reference is relative and/or absolute.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_CalcEngine_RangeReference__ctor_" data-uid="GrapeCity.CalcEngine.RangeReference.#ctor*"></a>
<h4 id="GrapeCity_CalcEngine_RangeReference__ctor_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="GrapeCity.CalcEngine.RangeReference.#ctor(System.Int32,System.Int32,System.Int32,System.Int32)">RangeReference(int, int, int, int)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.CalcEngine.RangeReference.html">RangeReference</a> struct.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public RangeReference(int row, int column, int row2, int column2)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(row As Integer, column As Integer, row2 As Integer, column2 As Integer)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">row</span></td>
      <td><p>An integer value indicates the absolute top row index.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">column</span></td>
      <td><p>An integer value indicates the absolute left column index.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">row2</span></td>
      <td><p>An integer value indicates the absolute bottom row index.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">column2</span></td>
      <td><p>An integer value indicates the absolute right column index.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_CalcEngine_RangeReference__ctor_" data-uid="GrapeCity.CalcEngine.RangeReference.#ctor*"></a>
<h4 id="GrapeCity_CalcEngine_RangeReference__ctor_System_Int32_System_Int32_GrapeCity_CalcEngine_CellRelation_System_Int32_System_Int32_GrapeCity_CalcEngine_CellRelation_" data-uid="GrapeCity.CalcEngine.RangeReference.#ctor(System.Int32,System.Int32,GrapeCity.CalcEngine.CellRelation,System.Int32,System.Int32,GrapeCity.CalcEngine.CellRelation)">RangeReference(int, int, CellRelation, int, int, CellRelation)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.CalcEngine.RangeReference.html">RangeReference</a> struct.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public RangeReference(int row, int column, CellRelation topLeftPosition, int row2, int column2, CellRelation bottomRightPosition)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(row As Integer, column As Integer, topLeftPosition As CellRelation, row2 As Integer, column2 As Integer, bottomRightPosition As CellRelation)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">row</span></td>
      <td><p>An integer value indicates the top row index.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">column</span></td>
      <td><p>An integer value indicates the left column index.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.CalcEngine.CellRelation.html">CellRelation</a></td>
      <td><span class="parametername">topLeftPosition</span></td>
      <td><p>A <a class="xref" href="GrapeCity.CalcEngine.CellRelation.html">CellRelation</a> value indicates whether the top-left reference is relative and/or absolute.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">row2</span></td>
      <td><p>An integer value indicates the bottom row index.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">column2</span></td>
      <td><p>An integer value indicates the right column index.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.CalcEngine.CellRelation.html">CellRelation</a></td>
      <td><span class="parametername">bottomRightPosition</span></td>
      <td><p>A <a class="xref" href="GrapeCity.CalcEngine.CellRelation.html">CellRelation</a> value indicates whether the bottom-right reference is relative and/or absolute.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_CalcEngine_RangeReference__ctor_" data-uid="GrapeCity.CalcEngine.RangeReference.#ctor*"></a>
<h4 id="GrapeCity_CalcEngine_RangeReference__ctor_GrapeCity_CalcEngine_CellReference_GrapeCity_CalcEngine_CellReference_" data-uid="GrapeCity.CalcEngine.RangeReference.#ctor(GrapeCity.CalcEngine.CellReference,GrapeCity.CalcEngine.CellReference)">RangeReference(CellReference, CellReference)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.CalcEngine.RangeReference.html">RangeReference</a> struct.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public RangeReference(CellReference topLeft, CellReference bottomRight)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(topLeft As CellReference, bottomRight As CellReference)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.CalcEngine.CellReference.html">CellReference</a></td>
      <td><span class="parametername">topLeft</span></td>
      <td><p>The top left reference.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.CalcEngine.CellReference.html">CellReference</a></td>
      <td><span class="parametername">bottomRight</span></td>
      <td><p>The bottom right reference.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
