Returns the index of the line which contains the character with the specified character position.
TXTextControl.GetLineFromChar Char
Parameter | Description | |
Char |
Specifies the position of the character whose line index is returned. The position of the first character is zero. |
The method returns a line index, starting with 0 for the first line. The return value is -1 if an error has occurred or if the specified character position does not exist.
Char: | Long |
Return value: | Long |
<< TXTextControl.GetLineCount Method | >> TXTextControl.GetLineFromPoint Method