TX Text Control ActiveX

InputPosFromPoint Method

Method

Returns the text input position belonging to a certain geometric position. The text input position is relative to the beginning of the text and the geometric position is a position in the visible part of the text.

Syntax

TXTextControl.InputPosFromPoint X, Y

Parameters

ParameterDescription
X, YSpecify the coordinates of the point. These values must be in twips.

Return Value

The method returns the text input position beginning with zero for the position in front of the first character. The method returns -1, if a text position could not be found.

Data Types

NameData type
X, YLong
Return valueLong

See Also