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

TListItems.IndexOf

Gets the ordinal position in the container for the specified list item.

Declaration

Source position: comctrls.pp line 1171

public function TListItems.IndexOf(

  const AItem: TListItem

):Integer;

Arguments

AItem

  

TListItem instance to locate in the container.

Function result

Ordinal position in the container for the specified list item, or -1 when not found.