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

TCustomListView.GetNextItem

Gets the next list item in the given direction from the starting item.

Declaration

Source position: comctrls.pp line 1642

public function TCustomListView.GetNextItem(

  StartItem: TListItem;

  Direction: TSearchDirection;

  States: TListItemStates

):TListItem;

Arguments

StartItem

  

Initial list item used to find the eligible item.

Direction

  

Direction of the search for the next list item.

States

  

Set of states values for eligible list items in the search.

Function result

Next list item in the specified direction.

Description

GetNextItem is a TListItem function used to find the next list item after StartItem in the direction given by the Direction parameter. Only items which include the state values in the States parameter are considered.

GetNextItem calls the corresponding method in the widgetset class instance to get the TListItem which meets the specified search criteria. If no list item is found for the search criteria, the return value is Nil.

See also

TListItem

  

Represents the items created in TCustomListView and descendants.

TSearchDirection

  

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

TListItemState

  

Represents state values for items in a list view control.

TListItemStates

  

Set type used to store value(s) from the TListItemState enumeration.


Version 3.2 Generated 2024-02-25 Home