Table of Contents

TTMSFNCCustomTileList.XYToItemIndex Method

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

API unit family: TMSFNCTileList Declaring type: TTMSFNCCustomTileList

Syntax

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

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.