Wimark.Controls Class Library  

RichTextBox.GetLineFromCharIndex Method

Gets the line number from the specified character position within the text of the 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 
);

Parameters

index
The character index position to search.

Return Value

The zero-based line number where the character index is located in.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows .NET Server family

See Also

RichTextBox Class | RichTextBox Members | Wimark.Controls Namespace