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.
TXTextControl.GetLineFromPoint X, Y
Parameter | Description | |
X, Y |
Specifies a geometric position in pixels. |
The method returns a line index, starting with 0 for the first line. The return value is -1 if an error has occurred.
X, Y: | Long |
Return value: | Long |
<< TXTextControl.GetLineFromChar Method | >> TXTextControl.GetLineRect Method