RAD Studio VCL Reference
|
Returns the list item nearest a specified point, in a particular direction.
function GetNearestItem(Point: TPoint; Direction: TSearchDirection): TListItem;
__fastcall TListItem GetNearestItem(TPoint Point, TSearchDirection Direction);
Call GetNearestItem to locate a list item from a position specified in pixel coordinates relative to the top left corner of the list view. GetNearestItem starts looking at the position specified by the Point parameter, and moves in the direction indicated by the Direction parameter until it locates a list item.
If no item is found, GetNearestItem returns nil (Delphi) or NULL (C++).
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|