# C1.Win.C1Input.C1TextBox.MaxLineCount

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_C1Input_C1TextBox_MaxLineCount_" data-uid="C1.Win.C1Input.C1TextBox.MaxLineCount*">MaxLineCount Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_C1Input_C1TextBox_MaxLineCount_" data-uid="C1.Win.C1Input.C1TextBox.MaxLineCount*"></a>
<h4 id="C1_Win_C1Input_C1TextBox_MaxLineCount" data-uid="C1.Win.C1Input.C1TextBox.MaxLineCount">MaxLineCount</h4>
<div class="markdown level1 summary"><p>Gets or sets the maximum number of 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>An <b>int</b> value that indicates the maximum number of lines.
<br>The default is <b>zero</b>.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_C1Input_C1TextBox_MaxLineCount_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p><b>MaxLineCount</b> limits the acceptable lines of text when the <a class="xref" href="C1.Win.C1Input.C1TextBox.Multiline.html#C1_Win_C1Input_C1TextBox_Multiline">Multiline</a>
property is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a>.
</p>
<p>
This property does not work with wrapped lines, so preferrable is to use <b>MaxLineCount</b> when <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.textboxbase.wordwrap">WordWrap</a>
property is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a>.
</p>
<p>
The default value of this property, zero, means no limit.
</p>
</div>
<h5 id="C1_Win_C1Input_C1TextBox_MaxLineCount_seealso">See Also</h5>
<div class="seealso">
    <div><a class="xref" href="C1.Win.C1Input.C1TextBox.Multiline.html#C1_Win_C1Input_C1TextBox_Multiline">Multiline</a></div>
</div>
</div>
