Returns the number of the line containing a specified character position in a RichTextBox control.
[Visual Basic] Public Function GetLineFromCharIndex( _ ByVal index As Integer _ ) As Integer [C#] public int GetLineFromCharIndex( int index ); [C++] public: int GetLineFromCharIndex( int index ); [JScript] public function GetLineFromCharIndex( index : int ) : int;
the number of the line.
RichTextBox Class | RichTextBox Members | System.WinForms Namespace