TextBox::LineCount Property
.NET Framework (current version)
Gets the total number of lines in the text box.
Assembly: PresentationFramework (in PresentationFramework.dll)
Property Value
Type: System::Int32The total number of lines in the text box, or –1 if layout information is not available.
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.
.NET Framework
Available since 3.0
Available since 3.0
Show: