Skip to main content
Table of Contents

TTMSFNCMemo.XYToPos Method

Converts editor coordinates to a caret position.

API unit family: TMSFNCMemo Declaring type: TTMSFNCMemo Inherited from: TTMSFNCCustomMemo

Syntax

FMX.TMSFNCMemo.hppPascalC++
function XYToPos(const X, Y: Integer): TTMSFNCMemoCaretPosition;
TTMSFNCMemoCaretPosition __fastcall XYToPos(const int X, const int Y);

Parameters

Name Description
X The horizontal editor coordinate.
Y The vertical editor coordinate.

Returns

The caret position at the specified editor coordinates.