# FarPoint.Win.Spread.ModelessForm.ParseCellRanges

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_Spread_ModelessForm_ParseCellRanges_" data-uid="FarPoint.Win.Spread.ModelessForm.ParseCellRanges*">ParseCellRanges Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_Spread_ModelessForm_ParseCellRanges_" data-uid="FarPoint.Win.Spread.ModelessForm.ParseCellRanges*"></a>
<h4 id="FarPoint_Win_Spread_ModelessForm_ParseCellRanges_System_String_System_Boolean_" data-uid="FarPoint.Win.Spread.ModelessForm.ParseCellRanges(System.String,System.Boolean)">ParseCellRanges(string, bool)</h4>
<div class="markdown level1 summary"><p>Parses the 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 List&lt;SheetCellRange&gt; ParseCellRanges(string formula, bool errorAsNull)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Function ParseCellRanges(formula As String, errorAsNull As Boolean) As List(Of SheetCellRange)</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>The formula.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">errorAsNull</span></td>
      <td><p>if set to <code>true</code>, we will tread all invalid formula as null expression.</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.collections.generic.list-1">List</a>&lt;<a class="xref" href="FarPoint.Win.Spread.Chart.SheetCellRange.html">SheetCellRange</a>&gt;</td>
      <td><p>A list of sheet cell range.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
