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

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcTextBox_CountWrappedLine_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcTextBox.CountWrappedLine*">CountWrappedLine Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcTextBox_CountWrappedLine_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcTextBox.CountWrappedLine*"></a>
<h4 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcTextBox_CountWrappedLine" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcTextBox.CountWrappedLine">CountWrappedLine</h4>
<div class="markdown level1 summary"><p>Gets or sets a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a> value that indicates whether to count the wrapped line
when limit the count of lines counted by <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcTextBox.MaxLineCount.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcTextBox_MaxLineCount">MaxLineCount</a> property. This is a dependency property.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool CountWrappedLine { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property CountWrappedLine As Boolean</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.boolean">bool</a></td>
      <td><p><a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a> if counts the wrapped line; otherwise, <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">false</a>.
<br>The default is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">false</a>.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcTextBox_CountWrappedLine_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>If set this <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcTextBox.CountWrappedLine.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcTextBox_CountWrappedLine">CountWrappedLine</a> property to <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a>, set
GrapeCity.Windows.InputMan.GcTextBox.Multiline property to <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a>,
and set the GrapeCity.Windows.InputMan.GcTextBox.MaxLineCount
property to a non-zero value. This  <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcTextBox.html">GcTextBox</a> only accepts the texts which lines is less than
the value of GrapeCity.Windows.InputMan.GcTextBox.MaxLineCount.</p>
</div>
<h5 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcTextBox_CountWrappedLine_seealso">See Also</h5>
<div class="seealso">
    <div><a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcTextBox.Multiline.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcTextBox_Multiline">Multiline</a></div>
    <div><a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcTextBox.MaxLineCount.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcTextBox_MaxLineCount">MaxLineCount</a></div>
</div>
</div>
