# GrapeCity.CalcEngine.IReferenceSource.GetValue

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_CalcEngine_IReferenceSource_GetValue_" data-uid="GrapeCity.CalcEngine.IReferenceSource.GetValue*">GetValue Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_CalcEngine_IReferenceSource_GetValue_" data-uid="GrapeCity.CalcEngine.IReferenceSource.GetValue*"></a>
<h4 id="GrapeCity_CalcEngine_IReferenceSource_GetValue_GrapeCity_CalcEngine_IEvaluationContext_System_Int32_System_Int32_GrapeCity_CalcEngine_IPrimitiveValue_" data-uid="GrapeCity.CalcEngine.IReferenceSource.GetValue(GrapeCity.CalcEngine.IEvaluationContext,System.Int32,System.Int32,GrapeCity.CalcEngine.IPrimitiveValue)">GetValue(IEvaluationContext, int, int, IPrimitiveValue)</h4>
<div class="markdown level1 summary"><p>Gets the value at the specified location of the 2-dimensions matrix.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void GetValue(IEvaluationContext context, int row, int column, IPrimitiveValue result)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub GetValue(context As IEvaluationContext, row As Integer, column As Integer, result As IPrimitiveValue)</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 <span class="xref">GrapeCity.CalcEngine.EvaluationContext</span> object indicates the evaluation context.</p>
</td>
    </tr>
    <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 of the 2-dimensions matrix.</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 of the 2-dimensions matrix.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.CalcEngine.IPrimitiveValue.html">IPrimitiveValue</a></td>
      <td><span class="parametername">result</span></td>
      <td><p>An <a class="xref" href="GrapeCity.CalcEngine.IPrimitiveValue.html">IPrimitiveValue</a> object represents the value at the specified location.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_CalcEngine_IReferenceSource_GetValue_" data-uid="GrapeCity.CalcEngine.IReferenceSource.GetValue*"></a>
<h4 id="GrapeCity_CalcEngine_IReferenceSource_GetValue_GrapeCity_CalcEngine_IEvaluationContext_System_Int32_System_Int32_System_Int32_System_Int32_GrapeCity_CalcEngine_IValuesArray_System_Boolean_" data-uid="GrapeCity.CalcEngine.IReferenceSource.GetValue(GrapeCity.CalcEngine.IEvaluationContext,System.Int32,System.Int32,System.Int32,System.Int32,GrapeCity.CalcEngine.IValuesArray,System.Boolean)">GetValue(IEvaluationContext, int, int, int, int, IValuesArray, bool)</h4>
<div class="markdown level1 summary"><p>Gets the values at the specified range of the 2-dimensions matrix.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void GetValue(IEvaluationContext context, int row, int column, int row2, int column2, IValuesArray result, bool keepEmptyValue = false)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub GetValue(context As IEvaluationContext, row As Integer, column As Integer, row2 As Integer, column2 As Integer, result As IValuesArray, Optional keepEmptyValue As Boolean = False)</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 <span class="xref">GrapeCity.CalcEngine.EvaluationContext</span> object indicates the evaluation context.</p>
</td>
    </tr>
    <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 of the 2-dimensions matrix.</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 of the 2-dimensions matrix.</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 of the 2-dimensions matrix.</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 of the 2-dimensions matrix.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.CalcEngine.IValuesArray.html">IValuesArray</a></td>
      <td><span class="parametername">result</span></td>
      <td><p>An <a class="xref" href="GrapeCity.CalcEngine.IPrimitiveValue.html">IPrimitiveValue</a> object represents the values at the specified range.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">keepEmptyValue</span></td>
      <td><p>Boolean value represents keeping empty values as empty or not.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_CalcEngine_IReferenceSource_GetValue_" data-uid="GrapeCity.CalcEngine.IReferenceSource.GetValue*"></a>
<h4 id="GrapeCity_CalcEngine_IReferenceSource_GetValue_GrapeCity_CalcEngine_IEvaluationContext_System_Int32_System_Int32_System_Int32_System_Int32_GrapeCity_CalcEngine_CellValue___System_Int32_" data-uid="GrapeCity.CalcEngine.IReferenceSource.GetValue(GrapeCity.CalcEngine.IEvaluationContext,System.Int32,System.Int32,System.Int32,System.Int32,GrapeCity.CalcEngine.CellValue[],System.Int32)">GetValue(IEvaluationContext, int, int, int, int, CellValue[], int)</h4>
<div class="markdown level1 summary"><p>Gets the values at the specified range of the 2-dimensions matrix.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void GetValue(IEvaluationContext context, int row, int column, int row2, int column2, CellValue[] result, int index = 0)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub GetValue(context As IEvaluationContext, row As Integer, column As Integer, row2 As Integer, column2 As Integer, result As CellValue(), Optional index As Integer = 0)</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 <span class="xref">GrapeCity.CalcEngine.EvaluationContext</span> object indicates the evaluation context.</p>
</td>
    </tr>
    <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 of the 2-dimensions matrix.</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 of the 2-dimensions matrix.</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 of the 2-dimensions matrix.</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 of the 2-dimensions matrix.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.CalcEngine.CellValue.html">CellValue</a>[]</td>
      <td><span class="parametername">result</span></td>
      <td><p>An <a class="xref" href="GrapeCity.CalcEngine.CellValue.html">CellValue</a> array represents the values at the specified range.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">index</span></td>
      <td><p>The start item index to write data.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_CalcEngine_IReferenceSource_GetValue_" data-uid="GrapeCity.CalcEngine.IReferenceSource.GetValue*"></a>
<h4 id="GrapeCity_CalcEngine_IReferenceSource_GetValue_GrapeCity_CalcEngine_IEvaluationContext_System_Int32_System_Int32_GrapeCity_CalcEngine_CellValue__" data-uid="GrapeCity.CalcEngine.IReferenceSource.GetValue(GrapeCity.CalcEngine.IEvaluationContext,System.Int32,System.Int32,GrapeCity.CalcEngine.CellValue@)">GetValue(IEvaluationContext, int, int, ref CellValue)</h4>
<div class="markdown level1 summary"><p>Gets the value at the specified location of the 2-dimensions matrix.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">void GetValue(IEvaluationContext context, int row, int column, ref CellValue result)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Sub GetValue(context As IEvaluationContext, row As Integer, column As Integer, ByRef result As CellValue)</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 <span class="xref">GrapeCity.CalcEngine.EvaluationContext</span> object indicates the evaluation context.</p>
</td>
    </tr>
    <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 of the 2-dimensions matrix.</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 of the 2-dimensions matrix.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.CalcEngine.CellValue.html">CellValue</a></td>
      <td><span class="parametername">result</span></td>
      <td><p>An <a class="xref" href="GrapeCity.CalcEngine.CellValue.html">CellValue</a> object represents the value at the specified location.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
