# GrapeCity.CalcEngine.IReferenceSource.GetReferenceExpression

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_CalcEngine_IReferenceSource_GetReferenceExpression_" data-uid="GrapeCity.CalcEngine.IReferenceSource.GetReferenceExpression*">GetReferenceExpression Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_CalcEngine_IReferenceSource_GetReferenceExpression_" data-uid="GrapeCity.CalcEngine.IReferenceSource.GetReferenceExpression*"></a>
<h4 id="GrapeCity_CalcEngine_IReferenceSource_GetReferenceExpression_GrapeCity_CalcEngine_FormulaEngine_" data-uid="GrapeCity.CalcEngine.IReferenceSource.GetReferenceExpression(GrapeCity.CalcEngine.FormulaEngine)">GetReferenceExpression(FormulaEngine)</h4>
<div class="markdown level1 summary"><p>Gets the reference expression to evaluate this <a class="xref" href="GrapeCity.CalcEngine.IReferenceSource.html">IReferenceSource</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">Expression GetReferenceExpression(FormulaEngine formulaEngine)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function GetReferenceExpression(formulaEngine As FormulaEngine) As Expression</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><span class="xref">FormulaEngine</span></td>
      <td><span class="parametername">formulaEngine</span></td>
      <td><p>A <span class="xref">GrapeCity.CalcEngine.FormulaEngine</span> object indicates the formula engine.</p>
</td>
    </tr>
  </tbody>
</table>
<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><span class="xref">Expression</span></td>
      <td><p>An <span class="xref">GrapeCity.CalcEngine.Expression</span> value represents the reference expression to evaluate this <a class="xref" href="GrapeCity.CalcEngine.IReferenceSource.html">IReferenceSource</a>.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_CalcEngine_IReferenceSource_GetReferenceExpression_" data-uid="GrapeCity.CalcEngine.IReferenceSource.GetReferenceExpression*"></a>
<h4 id="GrapeCity_CalcEngine_IReferenceSource_GetReferenceExpression_GrapeCity_CalcEngine_FormulaEngine_GrapeCity_CalcEngine_IStructuredObject_GrapeCity_CalcEngine_StructuredItemSpecifiers_System_Int32_System_Int32_" data-uid="GrapeCity.CalcEngine.IReferenceSource.GetReferenceExpression(GrapeCity.CalcEngine.FormulaEngine,GrapeCity.CalcEngine.IStructuredObject,GrapeCity.CalcEngine.StructuredItemSpecifiers,System.Int32,System.Int32)">GetReferenceExpression(FormulaEngine, IStructuredObject, StructuredItemSpecifiers, int, int)</h4>
<div class="markdown level1 summary"><p>Gets the reference expression to evaluate the specified <a class="xref" href="GrapeCity.CalcEngine.IStructuredObject.html">IStructuredObject</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">Expression GetReferenceExpression(FormulaEngine formulaEngine, IStructuredObject structuredObject, StructuredItemSpecifiers itemSpecifiers = StructuredItemSpecifiers.Default, int columnId = -1, int columnId2 = -1)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function GetReferenceExpression(formulaEngine As FormulaEngine, structuredObject As IStructuredObject, Optional itemSpecifiers As StructuredItemSpecifiers = StructuredItemSpecifiers.Default, Optional columnId As Integer = -1, Optional columnId2 As Integer = -1) As Expression</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><span class="xref">FormulaEngine</span></td>
      <td><span class="parametername">formulaEngine</span></td>
      <td><p>A <span class="xref">GrapeCity.CalcEngine.FormulaEngine</span> object indicates the formula engine.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.CalcEngine.IStructuredObject.html">IStructuredObject</a></td>
      <td><span class="parametername">structuredObject</span></td>
      <td><p>An <a class="xref" href="GrapeCity.CalcEngine.IStructuredObject.html">IStructuredObject</a> object indicates the structured object.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.CalcEngine.StructuredItemSpecifiers.html">StructuredItemSpecifiers</a></td>
      <td><span class="parametername">itemSpecifiers</span></td>
      <td><p>A <a class="xref" href="GrapeCity.CalcEngine.StructuredItemSpecifiers.html">StructuredItemSpecifiers</a> value indicates the item specifiers.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">columnId</span></td>
      <td><p>An integer value indicates the first column.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">columnId2</span></td>
      <td><p>An integer value indicates the second column.</p>
</td>
    </tr>
  </tbody>
</table>
<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><span class="xref">Expression</span></td>
      <td><p>An <span class="xref">GrapeCity.CalcEngine.Expression</span> value represents the reference expression to evaluate this <a class="xref" href="GrapeCity.CalcEngine.IReferenceSource.html">IReferenceSource</a>.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_CalcEngine_IReferenceSource_GetReferenceExpression_" data-uid="GrapeCity.CalcEngine.IReferenceSource.GetReferenceExpression*"></a>
<h4 id="GrapeCity_CalcEngine_IReferenceSource_GetReferenceExpression_GrapeCity_CalcEngine_FormulaEngine_GrapeCity_CalcEngine_IStructuredObject_GrapeCity_CalcEngine_Expression_" data-uid="GrapeCity.CalcEngine.IReferenceSource.GetReferenceExpression(GrapeCity.CalcEngine.FormulaEngine,GrapeCity.CalcEngine.IStructuredObject,GrapeCity.CalcEngine.Expression)">GetReferenceExpression(FormulaEngine, IStructuredObject, Expression)</h4>
<div class="markdown level1 summary"><p>Gets the reference expression to evaluate the specified <a class="xref" href="GrapeCity.CalcEngine.IStructuredObject.html">IStructuredObject</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">Expression GetReferenceExpression(FormulaEngine formulaEngine, IStructuredObject structuredObject, Expression expression)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Function GetReferenceExpression(formulaEngine As FormulaEngine, structuredObject As IStructuredObject, expression As Expression) As Expression</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><span class="xref">FormulaEngine</span></td>
      <td><span class="parametername">formulaEngine</span></td>
      <td><p>A <span class="xref">GrapeCity.CalcEngine.FormulaEngine</span> object indicates the formula engine.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.CalcEngine.IStructuredObject.html">IStructuredObject</a></td>
      <td><span class="parametername">structuredObject</span></td>
      <td><p>An <a class="xref" href="GrapeCity.CalcEngine.IStructuredObject.html">IStructuredObject</a> object indicates the structured object.</p>
</td>
    </tr>
    <tr>
      <td><span class="xref">Expression</span></td>
      <td><span class="parametername">expression</span></td>
      <td><p>The expression refers to the <a class="xref" href="GrapeCity.CalcEngine.IStructuredObject.html">IStructuredObject</a>.</p>
</td>
    </tr>
  </tbody>
</table>
<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><span class="xref">Expression</span></td>
      <td><p>An <span class="xref">GrapeCity.CalcEngine.Expression</span> value represents the reference expression to evaluate this <a class="xref" href="GrapeCity.CalcEngine.IReferenceSource.html">IReferenceSource</a>.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
