TcxCustomListView.GetNextItem(TListItem,TSearchDirection,TItemStates) Method
In This Article
Searches for the item next to the specified one in the list view.
#Declaration
Delphi
function GetNextItem(StartItem: TListItem; Direction: TSearchDirection; States: TItemStates): TListItem;
#Parameters
Name | Type |
---|---|
Start |
TList |
Direction | TSearch |
States | TItem |
#Returns
Type |
---|
TList |
#Remarks
The GetNextItem method searches for the item in the list view, which is located next to the specified one. The following parameters are required:
The StartItem parameter identifies an item to search from.
The Direction parameter specifies the search direction. All the possible values of the Direction parameter are listed in the following table:
Value | Meaning |
---|---|
sd |
Look to the left of a specified item. |
sd |
Look to the right of a specified item. |
sd |
Look above a specified item. |
sd |
Look below a specified item. |
sd |
Look in the order that items appear in the Items property. |
- The States parameter – only items in the specified states are considered. Can take the following values:
Value | Meaning |
---|---|
Is |
Item is in its default state. |
is |
Item is cut (for cut and paste operation). |
is |
Item is highlighted as a drag-and-drop target. |
is |
Item is focused. |
is |
Item is selected. |
is |
Item is active. |
See Also