System.Classes.TList.IndexOfItem
Delphi
function IndexOfItem(Item: Pointer; Direction: TDirection): Integer;
C++
int __fastcall IndexOfItem(void * Item, System::Types::TDirection Direction);
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | System.Classes.pas System.Classes.hpp |
System.Classes | TList |
説明
項目のインデックスを返します。
IndexOfItem メソッドを呼び出すと、リニア検索を使用して TList リストにある項目の場所を決定できます。 項目が見つからない場合は、-1 を返します。