Vcl.ComCtrls.TCustomListView.GetItemIndex
Delphi
function GetItemIndex(Value: TListItem): Integer; reintroduce; overload;
function GetItemIndex: Integer; reintroduce; overload; override;
C++
HIDESBASE int __fastcall GetItemIndex(TListItem* Value)/* overload */;
virtual int __fastcall GetItemIndex(void)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TCustomListView |
Description
Returns the index of the specified item in the Items property array.
Call GetItemIndex to determine the position of a list item, where 0 is the index of the first item, 1 is the index of the second item, and so on. If the item specified by the Value parameter is not in the list view, GetItemIndex returns -1. If the Value parameter is omitted, the index of the Selected item is returned.