# GrapeCity.CalcEngine.IEvaluationContext

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_CalcEngine_IEvaluationContext" data-uid="GrapeCity.CalcEngine.IEvaluationContext" class="text-break">IEvaluationContext Interface
</h1>
  <div class="markdown level0 summary"><p>An interface which the evaluation-enabled class must derived from.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.CalcEngine.html">GrapeCity.CalcEngine</a></h6>
  <h6><strong>Assembly</strong>: GrapeCity.CalcEngine.dll</h6>
  <h5 id="GrapeCity_CalcEngine_IEvaluationContext_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public interface IEvaluationContext</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Interface IEvaluationContext</code></pre>
  </div>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_CalcEngine_IEvaluationContext_ArrayColumnCount" data-uid="GrapeCity.CalcEngine.IEvaluationContext.ArrayColumnCount">
          <a class="xref" href="GrapeCity.CalcEngine.IEvaluationContext.ArrayColumnCount.html#GrapeCity_CalcEngine_IEvaluationContext_ArrayColumnCount">ArrayColumnCount</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the total number of columns inside a formula array.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_CalcEngine_IEvaluationContext_ArrayColumnOffset" data-uid="GrapeCity.CalcEngine.IEvaluationContext.ArrayColumnOffset">
          <a class="xref" href="GrapeCity.CalcEngine.IEvaluationContext.ArrayColumnOffset.html#GrapeCity_CalcEngine_IEvaluationContext_ArrayColumnOffset">ArrayColumnOffset</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the column offset of the cell inside a formula array.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_CalcEngine_IEvaluationContext_ArrayRowCount" data-uid="GrapeCity.CalcEngine.IEvaluationContext.ArrayRowCount">
          <a class="xref" href="GrapeCity.CalcEngine.IEvaluationContext.ArrayRowCount.html#GrapeCity_CalcEngine_IEvaluationContext_ArrayRowCount">ArrayRowCount</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the total number of rows inside a formula array.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_CalcEngine_IEvaluationContext_ArrayRowOffset" data-uid="GrapeCity.CalcEngine.IEvaluationContext.ArrayRowOffset">
          <a class="xref" href="GrapeCity.CalcEngine.IEvaluationContext.ArrayRowOffset.html#GrapeCity_CalcEngine_IEvaluationContext_ArrayRowOffset">ArrayRowOffset</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the row offset of the cell inside a formula array.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_CalcEngine_IEvaluationContext_CachingEnabled" data-uid="GrapeCity.CalcEngine.IEvaluationContext.CachingEnabled">
          <a class="xref" href="GrapeCity.CalcEngine.IEvaluationContext.CachingEnabled.html#GrapeCity_CalcEngine_IEvaluationContext_CachingEnabled">CachingEnabled</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value indicating whether calculation caching is enabled.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_CalcEngine_IEvaluationContext_Compatibility" data-uid="GrapeCity.CalcEngine.IEvaluationContext.Compatibility">
          <a class="xref" href="GrapeCity.CalcEngine.IEvaluationContext.Compatibility.html#GrapeCity_CalcEngine_IEvaluationContext_Compatibility">Compatibility</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the compatibility version of functions.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_CalcEngine_IEvaluationContext_ContextColumn" data-uid="GrapeCity.CalcEngine.IEvaluationContext.ContextColumn">
          <a class="xref" href="GrapeCity.CalcEngine.IEvaluationContext.ContextColumn.html#GrapeCity_CalcEngine_IEvaluationContext_ContextColumn">ContextColumn</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the column index of the cell whose formula is being evaluated.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_CalcEngine_IEvaluationContext_ContextRow" data-uid="GrapeCity.CalcEngine.IEvaluationContext.ContextRow">
          <a class="xref" href="GrapeCity.CalcEngine.IEvaluationContext.ContextRow.html#GrapeCity_CalcEngine_IEvaluationContext_ContextRow">ContextRow</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the row index of the cell whose formula is being evaluated.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_CalcEngine_IEvaluationContext_Date1904" data-uid="GrapeCity.CalcEngine.IEvaluationContext.Date1904">
          <a class="xref" href="GrapeCity.CalcEngine.IEvaluationContext.Date1904.html#GrapeCity_CalcEngine_IEvaluationContext_Date1904">Date1904</a>
        </td>
        <td class="markdown level1 summary"><p>Gets whether the date system used to convert a date to a serial value starts since 1/1/1904.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_CalcEngine_IEvaluationContext_Error" data-uid="GrapeCity.CalcEngine.IEvaluationContext.Error">
          <a class="xref" href="GrapeCity.CalcEngine.IEvaluationContext.Error.html#GrapeCity_CalcEngine_IEvaluationContext_Error">Error</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the calculation error.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_CalcEngine_IEvaluationContext_ExcelDateTimeCompatible" data-uid="GrapeCity.CalcEngine.IEvaluationContext.ExcelDateTimeCompatible">
          <a class="xref" href="GrapeCity.CalcEngine.IEvaluationContext.ExcelDateTimeCompatible.html#GrapeCity_CalcEngine_IEvaluationContext_ExcelDateTimeCompatible">ExcelDateTimeCompatible</a>
        </td>
        <td class="markdown level1 summary"><p>Processing date time is compatible with Lotus123. It assumes that 1900 is not a leap year.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_CalcEngine_IEvaluationContext_LanguagePackage" data-uid="GrapeCity.CalcEngine.IEvaluationContext.LanguagePackage">
          <a class="xref" href="GrapeCity.CalcEngine.IEvaluationContext.LanguagePackage.html#GrapeCity_CalcEngine_IEvaluationContext_LanguagePackage">LanguagePackage</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the current language package for calculation.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_CalcEngine_IEvaluationContext_ReferenceSource" data-uid="GrapeCity.CalcEngine.IEvaluationContext.ReferenceSource">
          <a class="xref" href="GrapeCity.CalcEngine.IEvaluationContext.ReferenceSource.html#GrapeCity_CalcEngine_IEvaluationContext_ReferenceSource">ReferenceSource</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the reference source where the formula is being evaluated.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_CalcEngine_IEvaluationContext_AllocValue" data-uid="GrapeCity.CalcEngine.IEvaluationContext.AllocValue">
          <a class="xref" href="GrapeCity.CalcEngine.IEvaluationContext.AllocValue.html#GrapeCity_CalcEngine_IEvaluationContext_AllocValue">AllocValue()</a>
        </td>
        <td class="markdown level1 summary"><p>Allocates a new <a class="xref" href="GrapeCity.CalcEngine.IValue.html">IValue</a> object.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_CalcEngine_IEvaluationContext_AllocValue_System_Int32_" data-uid="GrapeCity.CalcEngine.IEvaluationContext.AllocValue(System.Int32)">
          <a class="xref" href="GrapeCity.CalcEngine.IEvaluationContext.AllocValue.html#GrapeCity_CalcEngine_IEvaluationContext_AllocValue_System_Int32_">AllocValue(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Allocates multiple <a class="xref" href="GrapeCity.CalcEngine.IValue.html">IValue</a> objects.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_CalcEngine_IEvaluationContext_CastToInt_System_Double_" data-uid="GrapeCity.CalcEngine.IEvaluationContext.CastToInt(System.Double)">
          <a class="xref" href="GrapeCity.CalcEngine.IEvaluationContext.CastToInt.html#GrapeCity_CalcEngine_IEvaluationContext_CastToInt_System_Double_">CastToInt(double)</a>
        </td>
        <td class="markdown level1 summary"><p>Casts the specified <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a> value to <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a> value.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_CalcEngine_IEvaluationContext_CastToLong_System_Double_" data-uid="GrapeCity.CalcEngine.IEvaluationContext.CastToLong(System.Double)">
          <a class="xref" href="GrapeCity.CalcEngine.IEvaluationContext.CastToLong.html#GrapeCity_CalcEngine_IEvaluationContext_CastToLong_System_Double_">CastToLong(double)</a>
        </td>
        <td class="markdown level1 summary"><p>Casts the specified <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a> value to <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int64">long</a> value.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_CalcEngine_IEvaluationContext_DeallocValue" data-uid="GrapeCity.CalcEngine.IEvaluationContext.DeallocValue">
          <a class="xref" href="GrapeCity.CalcEngine.IEvaluationContext.DeallocValue.html#GrapeCity_CalcEngine_IEvaluationContext_DeallocValue">DeallocValue()</a>
        </td>
        <td class="markdown level1 summary"><p>Deallocates the last created <a class="xref" href="GrapeCity.CalcEngine.IValue.html">IValue</a> object.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_CalcEngine_IEvaluationContext_DeallocValue_System_Int32_" data-uid="GrapeCity.CalcEngine.IEvaluationContext.DeallocValue(System.Int32)">
          <a class="xref" href="GrapeCity.CalcEngine.IEvaluationContext.DeallocValue.html#GrapeCity_CalcEngine_IEvaluationContext_DeallocValue_System_Int32_">DeallocValue(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Deallocates the last created <a class="xref" href="GrapeCity.CalcEngine.IValue.html">IValue</a> objects.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_CalcEngine_IEvaluationContext_EnterContext_GrapeCity_CalcEngine_IReferenceSource_System_Int32_System_Int32_" data-uid="GrapeCity.CalcEngine.IEvaluationContext.EnterContext(GrapeCity.CalcEngine.IReferenceSource,System.Int32,System.Int32)">
          <a class="xref" href="GrapeCity.CalcEngine.IEvaluationContext.EnterContext.html#GrapeCity_CalcEngine_IEvaluationContext_EnterContext_GrapeCity_CalcEngine_IReferenceSource_System_Int32_System_Int32_">EnterContext(IReferenceSource, int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Enters the specified evaluating context.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_CalcEngine_IEvaluationContext_Evaluate_GrapeCity_CalcEngine_Expression_GrapeCity_CalcEngine_IValue_" data-uid="GrapeCity.CalcEngine.IEvaluationContext.Evaluate(GrapeCity.CalcEngine.Expression,GrapeCity.CalcEngine.IValue)">
          <a class="xref" href="GrapeCity.CalcEngine.IEvaluationContext.Evaluate.html#GrapeCity_CalcEngine_IEvaluationContext_Evaluate_GrapeCity_CalcEngine_Expression_GrapeCity_CalcEngine_IValue_">Evaluate(Expression, IValue)</a>
        </td>
        <td class="markdown level1 summary"><p>Evaluates the specified expression and returns the evaluated result via <code class="paramref">result</code> parameter.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_CalcEngine_IEvaluationContext_Evaluate_GrapeCity_CalcEngine_IDelegate_GrapeCity_CalcEngine_IValue_" data-uid="GrapeCity.CalcEngine.IEvaluationContext.Evaluate(GrapeCity.CalcEngine.IDelegate,GrapeCity.CalcEngine.IValue)">
          <a class="xref" href="GrapeCity.CalcEngine.IEvaluationContext.Evaluate.html#GrapeCity_CalcEngine_IEvaluationContext_Evaluate_GrapeCity_CalcEngine_IDelegate_GrapeCity_CalcEngine_IValue_">Evaluate(IDelegate, IValue)</a>
        </td>
        <td class="markdown level1 summary"><p>Evaluates the specified expression and returns the evaluated result via <code class="paramref">result</code> parameter.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_CalcEngine_IEvaluationContext_ExitContext" data-uid="GrapeCity.CalcEngine.IEvaluationContext.ExitContext">
          <a class="xref" href="GrapeCity.CalcEngine.IEvaluationContext.ExitContext.html#GrapeCity_CalcEngine_IEvaluationContext_ExitContext">ExitContext()</a>
        </td>
        <td class="markdown level1 summary"><p>Exits from the current evaluating context back to the previous evaluating context.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_CalcEngine_IEvaluationContext_GetRangeCache_GrapeCity_CalcEngine_IReferenceSource_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="GrapeCity.CalcEngine.IEvaluationContext.GetRangeCache(GrapeCity.CalcEngine.IReferenceSource,System.Int32,System.Int32,System.Int32,System.Int32)">
          <a class="xref" href="GrapeCity.CalcEngine.IEvaluationContext.GetRangeCache.html#GrapeCity_CalcEngine_IEvaluationContext_GetRangeCache_GrapeCity_CalcEngine_IReferenceSource_System_Int32_System_Int32_System_Int32_System_Int32_">GetRangeCache(IReferenceSource, int, int, int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the range cache.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_CalcEngine_IEvaluationContext_GetValue_System_Int32_" data-uid="GrapeCity.CalcEngine.IEvaluationContext.GetValue(System.Int32)">
          <a class="xref" href="GrapeCity.CalcEngine.IEvaluationContext.GetValue.html#GrapeCity_CalcEngine_IEvaluationContext_GetValue_System_Int32_">GetValue(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Get the <a class="xref" href="GrapeCity.CalcEngine.IValue.html">IValue</a> object at the specified index.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
