NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

RichTextBox.GetLineFromCharIndex

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;

Parameters

index
index the index of the character whose line to be identified

Return Value

the number of the line.

See Also

RichTextBox Class | RichTextBox Members | System.WinForms Namespace