TXTextControl.TXTextControl.GetLineFromPoint Method

Returns the index of the line which contains a given point. The point must be specified in pixels from the top left corner of the control.

Syntax

TXTextControl.GetLineFromPoint X, Y
Parameter Description
X, Y

Specifies a geometric position in pixels.

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.

Data Types

X, Y:    Long
Return value:    Long

See Also