# GrapeCity.CalcEngine.CellReference.SwitchReferenceType

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_CalcEngine_CellReference_SwitchReferenceType_" data-uid="GrapeCity.CalcEngine.CellReference.SwitchReferenceType*">SwitchReferenceType Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_CalcEngine_CellReference_SwitchReferenceType_" data-uid="GrapeCity.CalcEngine.CellReference.SwitchReferenceType*"></a>
<h4 id="GrapeCity_CalcEngine_CellReference_SwitchReferenceType" data-uid="GrapeCity.CalcEngine.CellReference.SwitchReferenceType">SwitchReferenceType()</h4>
<div class="markdown level1 summary"><p>Switch the reference type of this <a class="xref" href="GrapeCity.CalcEngine.CellReference.html">CellReference</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public CellRelation SwitchReferenceType()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function SwitchReferenceType() As CellRelation</code></pre>
</div>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.CalcEngine.CellRelation.html">CellRelation</a></td>
      <td><p>The new reference type.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_CalcEngine_CellReference_SwitchReferenceType_" data-uid="GrapeCity.CalcEngine.CellReference.SwitchReferenceType*"></a>
<h4 id="GrapeCity_CalcEngine_CellReference_SwitchReferenceType_GrapeCity_CalcEngine_CellRelation_" data-uid="GrapeCity.CalcEngine.CellReference.SwitchReferenceType(GrapeCity.CalcEngine.CellRelation)">SwitchReferenceType(CellRelation)</h4>
<div 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>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void SwitchReferenceType(CellRelation newReferenceType)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub SwitchReferenceType(newReferenceType 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="GrapeCity.CalcEngine.CellRelation.html">CellRelation</a></td>
      <td><span class="parametername">newReferenceType</span></td>
      <td><p>The new reference type.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
