# GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcNumber.Integer

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcNumber_Integer_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcNumber.Integer*">Integer Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcNumber_Integer_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcNumber.Integer*"></a>
<h4 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcNumber_Integer" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcNumber.Integer">Integer</h4>
<div class="markdown level1 summary"><p>Gets the integer part value of the current number <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcNumber.Value.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcNumber_Value">Value</a>.
<a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcNumber.html">GcNumber</a><a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcNumber.Value.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcNumber_Value">Value</a><a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcNumber.Decimal.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcNumber_Decimal">Decimal</a></p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public decimal? Integer { get; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public ReadOnly Property [Integer] As Decimal?</code></pre>
</div>
<h5 class="propertyValue">Property Value</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.decimal">decimal</a>?</td>
      <td><p>A nullable decimal value indicates the integer part of the entered number.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcNumber_Integer_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>
      This property allows you to retrieve the integer portion of the current value at run time. You can also retrieve the decimal portion using the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcNumber.Decimal.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcNumber_Decimal">Decimal</a> property. For example: 
      </p>
<p>
      number1.Value = -1234.120<br>
      With the example above, the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcNumber.Integer.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcNumber_Integer">Integer</a> returns -1234 and the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcNumber.Decimal.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcNumber_Decimal">Decimal</a> property returns -0.12.
      </p>
<p>
      number1.Value = 1234<br>
      With the example above, the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcNumber.Integer.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcNumber_Integer">Integer</a> returns 1234 and the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcNumber.Decimal.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcNumber_Decimal">Decimal</a> property returns 0.
      </p>
<p>
      If the underlying value is set to <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a>, this property will return a <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a>.
      </p>
</div>
</div>
