System.Classes.TList.IndexOfItem

提供: RAD Studio API Documentation
移動先: 案内検索

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 を返します。

関連項目