[Overview][Constants][Types][Classes][Procedures and functions][Index] | Reference for unit 'ComCtrls' (#lcl)

# TSearchDirection

Represents a search direction used to locate the list view item that is the nearest match.

## Declaration

Source position: comctrls.pp line 1291

`type TSearchDirection = (`
`sdLeft,` |  | Searches to the left of the specified list view item.
`sdRight,` |  | Searches to the right of the specified list view item.
`sdAbove,` |  | Searches above the specified list view item.
`sdBelow,` |  | Searches below the specified list view item.
`sdAll` |  | Searches in all directions for the list view item that is the nearest match.
`);`

## Description

A value from TSearchDirection is passed as an argument to the GetNearestItem method and the OnDataFind event handler in TCustomListView.

## See also

TCustomListView.GetNearestItem |  | Locates the list item closest to the specified position.
TCustomListView.OnDataFind |  | Event handler signalled to locate list item data when OwnerData (virtual) mode is enabled.
TCustomListView.DoOwnerDataFind |  | Implements incremental search in list items when OwnerData has been enabled.