Skip to main content
Table of Contents

TTMSFNCCustomListBox.XYToItemIndex Method

Returns the item index at the specified control-local coordinates.

API unit family: TMSFNCListBox Declaring type: TTMSFNCCustomListBox

Syntax

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

Parameters

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

Returns

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