# FarPoint.Win.Spread.Model.GeneralFormatter.Parse

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_Spread_Model_GeneralFormatter_Parse_" data-uid="FarPoint.Win.Spread.Model.GeneralFormatter.Parse*">Parse Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_Spread_Model_GeneralFormatter_Parse_" data-uid="FarPoint.Win.Spread.Model.GeneralFormatter.Parse*"></a>
<h4 id="FarPoint_Win_Spread_Model_GeneralFormatter_Parse_System_String_" data-uid="FarPoint.Win.Spread.Model.GeneralFormatter.Parse(System.String)">Parse(string)</h4>
<div class="markdown level1 summary"><p>Parses the string to an object and returns the result.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public object Parse(string s)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Parse(s As String) As Object</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">s</span></td>
      <td><p>String to be parsed</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.object">object</a></td>
      <td><p>Results of the parsing</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="implements">Implements</h5>
    <div><a class="xref" href="FarPoint.Win.Spread.CellType.IFormatter.Parse.html#FarPoint_Win_Spread_CellType_IFormatter_Parse_System_String_">IFormatter.Parse(string)</a></div>


<a id="FarPoint_Win_Spread_Model_GeneralFormatter_Parse_" data-uid="FarPoint.Win.Spread.Model.GeneralFormatter.Parse*"></a>
<h4 id="FarPoint_Win_Spread_Model_GeneralFormatter_Parse_System_String_System_IFormatProvider__System_String__" data-uid="FarPoint.Win.Spread.Model.GeneralFormatter.Parse(System.String,System.IFormatProvider@,System.String@)">Parse(string, ref IFormatProvider, ref string)</h4>
<div class="markdown level1 summary"><p>Parses the string to an object and returns the result.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public object Parse(string s, ref IFormatProvider formatInfo, ref string formatString)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function Parse(s As String, ByRef formatInfo As IFormatProvider, ByRef formatString As String) As Object</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">s</span></td>
      <td><p>String</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iformatprovider">IFormatProvider</a></td>
      <td><span class="parametername">formatInfo</span></td>
      <td><p>IFormatProvider</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">formatString</span></td>
      <td><p>String</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.object">object</a></td>
      <td><p>Results of the parsing</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="implements">Implements</h5>
    <div><a class="xref" href="../FarPoint.Win/FarPoint.Win.ILabelFormatter2.Parse.html#FarPoint_Win_ILabelFormatter2_Parse_System_String_System_IFormatProvider__System_String__">ILabelFormatter2.Parse(string, ref IFormatProvider, ref string)</a></div>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Condition</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Spread.Model.ParseException.html">ParseException</a></td>
      <td><p>Not a valid hexidecimal number.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
