Skip to main content
Table of Contents

TTMSFNCTileList.XYToItemIndex Method

Returns the index of the item at the specified control coordinates.

API unit family: TMSFNCTileList Declaring type: TTMSFNCTileList Inherited from: TTMSFNCCustomTileList

Syntax

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

Parameters

Name Description
X Horizontal coordinate in control client pixels.
Y Vertical coordinate in control client pixels.

Returns

The zero-based item index, or -1 when no item is hit.