TTMSFNCMemo.XYToPos Method
Converts editor coordinates to a caret position.
API unit family: TMSFNCMemo
Declaring type: TTMSFNCMemo
Inherited from: TTMSFNCCustomMemo
Syntax
function XYToPos(const X, Y: Integer): TTMSFNCMemoCaretPosition;
Parameters
| Name | Description |
|---|---|
X |
The horizontal editor coordinate. |
Y |
The vertical editor coordinate. |
Returns
The caret position at the specified editor coordinates.