InputPosFromPoint 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
| Parameter | Description |
|---|---|
| X, Y | Specify 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
| Name | Data type |
|---|---|
| X, Y | Long |
| Return value | Long |