Vcl.ComCtrls.TCustomListView.GetItemAt

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetItemAt(X, Y: Integer): TListItem;

C++

TListItem* __fastcall GetItemAt(int X, int Y);

Properties

Type Visibility Source Unit Parent
function public
Vcl.ComCtrls.pas
Vcl.ComCtrls.hpp
Vcl.ComCtrls TCustomListView

Description

Returns the list item at the specified position.

Call GetItemAt to obtain the TListItem object for the list item found at the position specified by the X and Y parameters. X and Y specify the coordinates of the position, in pixels, relative to the top left corner of the list view. If there is no item at the location, GetItemAt returns nil (Delphi) or NULL (C++).

See Also