Skip to main content
Table of Contents

TTMSFNCCustomListBox.XYToItem Method

Returns the item at the specified control-local coordinates.

API unit family: TMSFNCListBox Declaring type: TTMSFNCCustomListBox

Syntax

FMX.TMSFNCListBox.hppPascalC++
function XYToItem(X, Y: Single): TTMSFNCListBoxItem; virtual;
virtual TTMSFNCListBoxItem* __fastcall XYToItem(float X, float Y);

Parameters

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

Returns

The item at the coordinates, or nil when no item is found.