Skip to main content

TdxGalleryControlItems.GetItemAtPos(TPoint) Method

Searches the collection for a gallery item located at a specified point.

Declaration

function GetItemAtPos(const P: TPoint): TdxGalleryControlItem;

Parameters

Name Type
P TPoint

Returns

Type
TdxGalleryControlItem

Remarks

The P parameter specifies the point (in client coordinates) to be inspected. If this point falls within the bounds of a collection item, this item is returned as the function’s result. Otherwise, the function returns nil.

See Also