# GrapeCity.SpreadBuilder.Cells.DDCell.GetValue

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_SpreadBuilder_Cells_DDCell_GetValue_" data-uid="GrapeCity.SpreadBuilder.Cells.DDCell.GetValue*">GetValue Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_SpreadBuilder_Cells_DDCell_GetValue_" data-uid="GrapeCity.SpreadBuilder.Cells.DDCell.GetValue*"></a>
<h4 id="GrapeCity_SpreadBuilder_Cells_DDCell_GetValue" data-uid="GrapeCity.SpreadBuilder.Cells.DDCell.GetValue">GetValue()</h4>
<div class="markdown level1 summary"><p>Returns the current value of the cell.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public object GetValue()</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.object">object</a></td>
      <td><p>The current value of the cell, which can be:</p>
<ul><li>A null reference (for a <code>CellTypes.Blank</code> cell type).</li><li>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> (for a <code>CellTypes.Label</code> cell type).</li><li>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.double">double</a> (for a <code>CellTypes.Number</code> cell type).</li><li>One of the values in the <code>BiffCellBoolErrValues</code> enumeration (for a <code>CellTypes.BoolErr</code> cell type).</li></ul>
Use the <a class="xref" href="GrapeCity.SpreadBuilder.Cells.DDCell.Type.html#GrapeCity_SpreadBuilder_Cells_DDCell_Type">Type</a> property to determine the cell type before returning the value,
or check the type of the returned value.
</td>
    </tr>
  </tbody>
</table>
</div>
