API:System.Contnrs.TClassList.IndexOfItem

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

Delphi

function IndexOfItem(AClass: TClass; ADirection: TList.TDirection): Integer; inline;

C++

HIDESBASE int __fastcall IndexOfItem(System::TClass AClass, System::Types::TDirection ADirection);

プロパティ

種類 可視性 ソース ユニット
function public
System.Contnrs.pas
System.Contnrs.hpp
System.Contnrs TClassList

説明

項目のインデックスを返します。

System.Contnrs.TClassList.IndexOfItem は System.Classes.TList.IndexOfItem を継承しています。以下の内容はすべて System.Classes.TList.IndexOfItem を参照しています。

項目のインデックスを返します。

IndexOfItem メソッドを呼び出すと、リニア検索を使用して TList リストにある項目の場所を決定できます。 項目が見つからない場合は、-1 を返します。

関連項目