[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Locates the list item closest to the specified position.
Source position: comctrls.pp line 1620
public function TCustomListView.GetNearestItem( |
APoint: TPoint; |
Direction: TSearchDirection |
):TListItem; |
GetNearestItem is used to locate a list item from a position specified in pixel coordinates relative to the top left corner of the list view. It 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 Nil is returned.