# GrapeCity.Spreadsheet.CalculationEngine.Evaluate

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_CalculationEngine_Evaluate_" data-uid="GrapeCity.Spreadsheet.CalculationEngine.Evaluate*">Evaluate Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_CalculationEngine_Evaluate_" data-uid="GrapeCity.Spreadsheet.CalculationEngine.Evaluate*"></a>
<h4 id="GrapeCity_Spreadsheet_CalculationEngine_Evaluate_System_String_GrapeCity_Spreadsheet_IWorksheet_GrapeCity_Spreadsheet_CellReference_" data-uid="GrapeCity.Spreadsheet.CalculationEngine.Evaluate(System.String,GrapeCity.Spreadsheet.IWorksheet,GrapeCity.Spreadsheet.CellReference)">Evaluate(string, IWorksheet, CellReference)</h4>
<div class="markdown level1 summary"><p>Evaluates the specified expression using the specified evaluation context.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public IValue Evaluate(string formula, IWorksheet worksheet, CellReference contextCell)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Evaluate(formula As String, worksheet As IWorksheet, contextCell As CellReference) As IValue</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="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">formula</span></td>
      <td><p>An string value indicates the formula to evaluate.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Spreadsheet.IWorksheet.html">IWorksheet</a></td>
      <td><span class="parametername">worksheet</span></td>
      <td><p>An <a class="xref" href="GrapeCity.Spreadsheet.IWorksheet.html">IWorksheet</a> object indicates the context worksheet.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Spreadsheet.CellReference.html">CellReference</a></td>
      <td><span class="parametername">contextCell</span></td>
      <td><p>A <a class="xref" href="GrapeCity.Spreadsheet.CellReference.html">CellReference</a> value indicates the context cell.</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><a class="xref" href="../GrapeCity.CalcEngine/GrapeCity.CalcEngine.IValue.html">IValue</a></td>
      <td><p>GrapeCity.CalcEngine.IValue.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
