# GrapeCity.CalcEngine.IValue.SetReference

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_CalcEngine_IValue_SetReference_" data-uid="GrapeCity.CalcEngine.IValue.SetReference*">SetReference Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_CalcEngine_IValue_SetReference_" data-uid="GrapeCity.CalcEngine.IValue.SetReference*"></a>
<h4 id="GrapeCity_CalcEngine_IValue_SetReference_GrapeCity_CalcEngine_IEvaluationContext_GrapeCity_CalcEngine_CellReference_GrapeCity_CalcEngine_IReferenceSource_" data-uid="GrapeCity.CalcEngine.IValue.SetReference(GrapeCity.CalcEngine.IEvaluationContext,GrapeCity.CalcEngine.CellReference,GrapeCity.CalcEngine.IReferenceSource)">SetReference(IEvaluationContext, CellReference, IReferenceSource)</h4>
<div class="markdown level1 summary"><p>Sets the value of this <a class="xref" href="GrapeCity.CalcEngine.IValue.html">IValue</a> to the specified cell reference.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void SetReference(IEvaluationContext context, CellReference cellRef, IReferenceSource refSource)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub SetReference(context As IEvaluationContext, cellRef As CellReference, refSource As IReferenceSource)</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.IEvaluationContext.html">IEvaluationContext</a></td>
      <td><span class="parametername">context</span></td>
      <td><p>An <a class="xref" href="GrapeCity.CalcEngine.IEvaluationContext.html">IEvaluationContext</a> value indicates the evaluation context.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.CalcEngine.CellReference.html">CellReference</a></td>
      <td><span class="parametername">cellRef</span></td>
      <td><p>A <a class="xref" href="GrapeCity.CalcEngine.CellReference.html">CellReference</a> value indicates the cell reference.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.CalcEngine.IReferenceSource.html">IReferenceSource</a></td>
      <td><span class="parametername">refSource</span></td>
      <td><p>An <a class="xref" href="GrapeCity.CalcEngine.IReferenceSource.html">IReferenceSource</a> value indicates the reference source.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_CalcEngine_IValue_SetReference_" data-uid="GrapeCity.CalcEngine.IValue.SetReference*"></a>
<h4 id="GrapeCity_CalcEngine_IValue_SetReference_GrapeCity_CalcEngine_IEvaluationContext_GrapeCity_CalcEngine_RangeReference_GrapeCity_CalcEngine_IReferenceSource_" data-uid="GrapeCity.CalcEngine.IValue.SetReference(GrapeCity.CalcEngine.IEvaluationContext,GrapeCity.CalcEngine.RangeReference,GrapeCity.CalcEngine.IReferenceSource)">SetReference(IEvaluationContext, RangeReference, IReferenceSource)</h4>
<div class="markdown level1 summary"><p>Sets the value of this <a class="xref" href="GrapeCity.CalcEngine.IValue.html">IValue</a> to the specified reference.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void SetReference(IEvaluationContext context, RangeReference rangeRef, IReferenceSource refSource)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub SetReference(context As IEvaluationContext, rangeRef As RangeReference, refSource As IReferenceSource)</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.IEvaluationContext.html">IEvaluationContext</a></td>
      <td><span class="parametername">context</span></td>
      <td><p>An <a class="xref" href="GrapeCity.CalcEngine.IEvaluationContext.html">IEvaluationContext</a> value indicates the evaluation context.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.CalcEngine.RangeReference.html">RangeReference</a></td>
      <td><span class="parametername">rangeRef</span></td>
      <td><p>A <a class="xref" href="GrapeCity.CalcEngine.RangeReference.html">RangeReference</a> value indicates the range reference.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.CalcEngine.IReferenceSource.html">IReferenceSource</a></td>
      <td><span class="parametername">refSource</span></td>
      <td><p>An <a class="xref" href="GrapeCity.CalcEngine.IReferenceSource.html">IReferenceSource</a> value indicates the reference source.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_CalcEngine_IValue_SetReference_" data-uid="GrapeCity.CalcEngine.IValue.SetReference*"></a>
<h4 id="GrapeCity_CalcEngine_IValue_SetReference_GrapeCity_CalcEngine_IEvaluationContext_GrapeCity_CalcEngine_RangeReference___GrapeCity_CalcEngine_IReferenceSource_" data-uid="GrapeCity.CalcEngine.IValue.SetReference(GrapeCity.CalcEngine.IEvaluationContext,GrapeCity.CalcEngine.RangeReference[],GrapeCity.CalcEngine.IReferenceSource)">SetReference(IEvaluationContext, RangeReference[], IReferenceSource)</h4>
<div class="markdown level1 summary"><p>Sets the value of this <a class="xref" href="GrapeCity.CalcEngine.IValue.html">IValue</a> to the specified reference array.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void SetReference(IEvaluationContext context, RangeReference[] rangeRefs, IReferenceSource refSource)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub SetReference(context As IEvaluationContext, rangeRefs As RangeReference(), refSource As IReferenceSource)</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.IEvaluationContext.html">IEvaluationContext</a></td>
      <td><span class="parametername">context</span></td>
      <td><p>An <a class="xref" href="GrapeCity.CalcEngine.IEvaluationContext.html">IEvaluationContext</a> value indicates the evaluation context.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.CalcEngine.RangeReference.html">RangeReference</a>[]</td>
      <td><span class="parametername">rangeRefs</span></td>
      <td><p>An array of <a class="xref" href="GrapeCity.CalcEngine.RangeReference.html">RangeReference</a> represents the range references.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.CalcEngine.IReferenceSource.html">IReferenceSource</a></td>
      <td><span class="parametername">refSource</span></td>
      <td><p>An <a class="xref" href="GrapeCity.CalcEngine.IReferenceSource.html">IReferenceSource</a> value indicates the reference source.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_CalcEngine_IValue_SetReference_" data-uid="GrapeCity.CalcEngine.IValue.SetReference*"></a>
<h4 id="GrapeCity_CalcEngine_IValue_SetReference_GrapeCity_CalcEngine_IEvaluationContext_GrapeCity_CalcEngine_RangeReference_GrapeCity_CalcEngine_IReferenceSource_GrapeCity_CalcEngine_IReferenceSource_" data-uid="GrapeCity.CalcEngine.IValue.SetReference(GrapeCity.CalcEngine.IEvaluationContext,GrapeCity.CalcEngine.RangeReference,GrapeCity.CalcEngine.IReferenceSource,GrapeCity.CalcEngine.IReferenceSource)">SetReference(IEvaluationContext, RangeReference, IReferenceSource, IReferenceSource)</h4>
<div class="markdown level1 summary"><p>Sets the value of this <a class="xref" href="GrapeCity.CalcEngine.IValue.html">IValue</a> to the specified 3D-reference.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void SetReference(IEvaluationContext context, RangeReference rangeRef, IReferenceSource startRefSource, IReferenceSource endRefSource)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub SetReference(context As IEvaluationContext, rangeRef As RangeReference, startRefSource As IReferenceSource, endRefSource As IReferenceSource)</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.IEvaluationContext.html">IEvaluationContext</a></td>
      <td><span class="parametername">context</span></td>
      <td><p>An <a class="xref" href="GrapeCity.CalcEngine.IEvaluationContext.html">IEvaluationContext</a> value indicates the evaluation context.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.CalcEngine.RangeReference.html">RangeReference</a></td>
      <td><span class="parametername">rangeRef</span></td>
      <td><p>An array of <a class="xref" href="GrapeCity.CalcEngine.RangeReference.html">RangeReference</a> represents the range references.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.CalcEngine.IReferenceSource.html">IReferenceSource</a></td>
      <td><span class="parametername">startRefSource</span></td>
      <td><p>An <a class="xref" href="GrapeCity.CalcEngine.IReferenceSource.html">IReferenceSource</a> value indicates the start reference source.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.CalcEngine.IReferenceSource.html">IReferenceSource</a></td>
      <td><span class="parametername">endRefSource</span></td>
      <td><p>An <a class="xref" href="GrapeCity.CalcEngine.IReferenceSource.html">IReferenceSource</a> value indicates the end reference source.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
