Table of Contents

TTMSFNCCustomListBox.XYToItemIndex Method

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

API unit family: TMSFNCListBox Declaring type: TTMSFNCCustomListBox

Syntax

function XYToItemIndex(X, Y: Single): Integer; virtual;

Parameters

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

Returns

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