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

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcTextBox_MaxLineCount_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcTextBox.MaxLineCount*">MaxLineCount Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcTextBox_MaxLineCount_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcTextBox.MaxLineCount*"></a>
<h4 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcTextBox_MaxLineCount" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcTextBox.MaxLineCount">MaxLineCount</h4>
<div class="markdown level1 summary"><p>Gets or sets the maximum counts of acceptable lines.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public int MaxLineCount { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property MaxLineCount 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>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a> value indicate the maximum counts of lines.
<br>The default is zero.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcTextBox_MaxLineCount_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcTextBox.MaxLineCount.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcTextBox_MaxLineCount">MaxLineCount</a> limits the acceptable lines of text when the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcTextBox.CountWrappedLine.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcTextBox_CountWrappedLine">CountWrappedLine</a>
property is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a> and the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcTextBox.Multiline.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcTextBox_Multiline">Multiline</a> property is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a> too.
The default value of this property, zero, means no limit.</p>
</div>
</div>
