TX Text Control ActiveX

GetLineFromPoint Method

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

Parameters

ParameterDescription
X, YSpecifies 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

NameData type
X, YLong
Return valueLong

See Also