In The Hand LtdIn The Hand
GetLineFromCharIndex Method (textBox, index)
NamespacesInTheHand.Windows.FormsTextBoxHelperGetLineFromCharIndex(TextBox, Int32)
.NET Components for Mobility
Retrieves the line number from the specified character position within the text of the control.
Declaration Syntax
C#Visual Basic
public static int GetLineFromCharIndex(
	TextBox textBox,
	int index
)
Public Shared Function GetLineFromCharIndex ( _
	textBox As TextBox, _
	index As Integer _
) As Integer
Parameters
textBox (TextBox)
The TextBox control.
index (Int32)
The character index position to search.
Return Value
The zero-based line number in which the character index is located.

Assembly: InTheHand.Windows.Forms (Module: InTheHand.Windows.Forms) Version: 7.0.0.0