# GrapeCity.Win.Spread.InputMan.CellType.DropDownEditor.GetLineCount

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Win_Spread_InputMan_CellType_DropDownEditor_GetLineCount_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.DropDownEditor.GetLineCount*">GetLineCount Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Win_Spread_InputMan_CellType_DropDownEditor_GetLineCount_" data-uid="GrapeCity.Win.Spread.InputMan.CellType.DropDownEditor.GetLineCount*"></a>
<h4 id="GrapeCity_Win_Spread_InputMan_CellType_DropDownEditor_GetLineCount" data-uid="GrapeCity.Win.Spread.InputMan.CellType.DropDownEditor.GetLineCount">GetLineCount()</h4>
<div class="markdown level1 summary"><p>Retrieves the number of lines in a multiple-line mode of the drop-down window.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public int GetLineCount()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function GetLineCount() As Integer</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.int32">int</a></td>
      <td><p>An <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a> value that contains the number of lines in the multiple-line edit control.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Win_Spread_InputMan_CellType_DropDownEditor_GetLineCount_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>If the <a class="xref" href="GrapeCity.Win.Spread.InputMan.CellType.DropDownEditor.Text.html#GrapeCity_Win_Spread_InputMan_CellType_DropDownEditor_Text">Text</a> property is <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string.empty">Empty</a>, this method returns zero; otherwise, it returns the number of lines.</p>
</div>
</div>
