Skip to main content
Table of Contents

TTMSFNCBloxCustomSelector.XYToItem Method

Returns the index of the selectable item located at the given control coordinates.

API unit family: TMSFNCBloxSelector Declaring type: TTMSFNCBloxCustomSelector

Syntax

FMX.TMSFNCBloxSelector.hppPascalC++
function XYToItem(X, Y: Single): Integer;
int __fastcall XYToItem(float X, float Y);

Parameters

Name Description
X Horizontal position, in control coordinates.
Y Vertical position, in control coordinates.

Returns

The index of the enabled, non-separator, non-empty item at that position, or -1 when no such item is hit.