TXTextControl.TXTextControl.GetLineFromChar Method

Returns the index of the line which contains the character with the specified character position.


TXTextControl.GetLineFromChar Char
Parameter Description

Specifies the position of the character whose line index is returned. The position of the first character is zero.

Return Value

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.

Data Types

Char:    Long
Return value:    Long

See Also