# GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcTextBox.LineCount

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcTextBox_LineCount_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcTextBox.LineCount*">LineCount Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcTextBox_LineCount_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcTextBox.LineCount*"></a>
<h4 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcTextBox_LineCount" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcTextBox.LineCount">LineCount</h4>
<div class="markdown level1 summary"><p>Gets the total number of lines in the text box.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public int LineCount { get; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public ReadOnly Property LineCount As Integer</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.int32">int</a></td>
      <td><p>The total number of lines in the text box, or –1 if layout information is not available.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcTextBox_LineCount_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>If text wrapping is enabled, changing the width of the text box may change this value.
The value returned is the total number of lines in the text box, regardless of how many are currently visible.</p>
</div>
</div>
