RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomListView.GetItemAt Method

Returns the list item at the specified position.

Pascal
function GetItemAt(X: Integer; Y: Integer): TListItem;
C++
__fastcall TListItem GetItemAt(int X, int Y);

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++). 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!