# FarPoint.Win.Spread.Cell.ToString

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_Spread_Cell_ToString_" data-uid="FarPoint.Win.Spread.Cell.ToString*">ToString Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_Spread_Cell_ToString_" data-uid="FarPoint.Win.Spread.Cell.ToString*"></a>
<h4 id="FarPoint_Win_Spread_Cell_ToString" data-uid="FarPoint.Win.Spread.Cell.ToString">ToString()</h4>
<div class="markdown level1 summary"><p>Gets a string that contains an absolute reference to this
cell in the current reference style.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public override string ToString()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overrides Function ToString() As String</code></pre>
</div>
<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 string that contains an absolute reference to this cell in the current reference style.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="overrides">Overrides</h5>
<div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object.tostring">object.ToString()</a></div>


<a id="FarPoint_Win_Spread_Cell_ToString_" data-uid="FarPoint.Win.Spread.Cell.ToString*"></a>
<h4 id="FarPoint_Win_Spread_Cell_ToString_FarPoint_Win_Spread_Model_ReferenceStyle_" data-uid="FarPoint.Win.Spread.Cell.ToString(FarPoint.Win.Spread.Model.ReferenceStyle)">ToString(ReferenceStyle)</h4>
<div class="markdown level1 summary"><p>Gets a string that contains an absolute reference to this
cell in the specified reference style.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public string ToString(ReferenceStyle referenceStyle)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function ToString(referenceStyle As ReferenceStyle) 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.Model.ReferenceStyle.html">ReferenceStyle</a></td>
      <td><span class="parametername">referenceStyle</span></td>
      <td><p>Style of cell reference</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 string that contains an absolute reference to this cell in the specified reference style.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_Cell_ToString_" data-uid="FarPoint.Win.Spread.Cell.ToString*"></a>
<h4 id="FarPoint_Win_Spread_Cell_ToString_FarPoint_Win_Spread_Cell_" data-uid="FarPoint.Win.Spread.Cell.ToString(FarPoint.Win.Spread.Cell)">ToString(Cell)</h4>
<div class="markdown level1 summary"><p>Gets a string that contains a relative reference to this
cell in the current reference style.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public string ToString(Cell relativeTo)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function ToString(relativeTo As Cell) 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.Cell.html">Cell</a></td>
      <td><span class="parametername">relativeTo</span></td>
      <td><p>Cell to use for computing the relative reference</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 <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> value.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_Cell_ToString_" data-uid="FarPoint.Win.Spread.Cell.ToString*"></a>
<h4 id="FarPoint_Win_Spread_Cell_ToString_FarPoint_Win_Spread_Cell_FarPoint_Win_Spread_Model_ReferenceStyle_" data-uid="FarPoint.Win.Spread.Cell.ToString(FarPoint.Win.Spread.Cell,FarPoint.Win.Spread.Model.ReferenceStyle)">ToString(Cell, ReferenceStyle)</h4>
<div class="markdown level1 summary"><p>Gets a string that contains a relative reference to this
cell in the specified reference style.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public string ToString(Cell relativeTo, ReferenceStyle referenceStyle)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function ToString(relativeTo As Cell, referenceStyle As ReferenceStyle) 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.Cell.html">Cell</a></td>
      <td><span class="parametername">relativeTo</span></td>
      <td><p>Cell to use for computing the relative reference</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Spread.Model.ReferenceStyle.html">ReferenceStyle</a></td>
      <td><span class="parametername">referenceStyle</span></td>
      <td><p>Style of cell reference</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 string that contains a relative reference to this cell in the specified reference style.</p>
</td>
    </tr>
  </tbody>
</table>
<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="https://learn.microsoft.com/dotnet/api/system.argumentnullexception">ArgumentNullException</a></td>
      <td><p>No cell specified or specified cell (for relative reference) is not valid</p>
</td>
    </tr>
  </tbody>
</table>
</div>
