# FarPoint.Win.Spread.ModelessForm.GetFormula

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_Spread_ModelessForm_GetFormula_" data-uid="FarPoint.Win.Spread.ModelessForm.GetFormula*">GetFormula Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_Spread_ModelessForm_GetFormula_" data-uid="FarPoint.Win.Spread.ModelessForm.GetFormula*"></a>
<h4 id="FarPoint_Win_Spread_ModelessForm_GetFormula_FarPoint_Win_Spread_SheetView_FarPoint_Win_Spread_Model_CellRange_" data-uid="FarPoint.Win.Spread.ModelessForm.GetFormula(FarPoint.Win.Spread.SheetView,FarPoint.Win.Spread.Model.CellRange)">GetFormula(SheetView, CellRange)</h4>
<div class="markdown level1 summary"><p>Gets the formula string of a sheet cell range.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected string GetFormula(SheetView sheetView, CellRange cellRange)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Function GetFormula(sheetView As SheetView, cellRange As CellRange) As String</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="FarPoint.Win.Spread.SheetView.html">SheetView</a></td>
      <td><span class="parametername">sheetView</span></td>
      <td><p>The sheet view.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Spread.Model.CellRange.html">CellRange</a></td>
      <td><span class="parametername">cellRange</span></td>
      <td><p>The cell range.</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="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><p>A formula string.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_ModelessForm_GetFormula_" data-uid="FarPoint.Win.Spread.ModelessForm.GetFormula*"></a>
<h4 id="FarPoint_Win_Spread_ModelessForm_GetFormula_FarPoint_Win_Spread_Chart_SheetCellRange___System_Boolean_" data-uid="FarPoint.Win.Spread.ModelessForm.GetFormula(FarPoint.Win.Spread.Chart.SheetCellRange[],System.Boolean)">GetFormula(SheetCellRange[], bool)</h4>
<div class="markdown level1 summary"><p>Gets the formula string of multiple sheet cell ranges.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected string GetFormula(SheetCellRange[] cellRanges, bool useOpeningQuote)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Function GetFormula(cellRanges As SheetCellRange(), useOpeningQuote As Boolean) As String</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="FarPoint.Win.Spread.Chart.SheetCellRange.html">SheetCellRange</a>[]</td>
      <td><span class="parametername">cellRanges</span></td>
      <td><p>The cell ranges.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">useOpeningQuote</span></td>
      <td><p>if set to <code>true</code> [use opening quote].</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="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><p>A formula string.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
