表示: DelphiC++
表示設定

System.Classes.TList.IndexOfItem

出典: XE2 API Documentation

Delphi

function IndexOfItem(Item: Pointer; Direction: TDirection): Integer;

C++

int __fastcall IndexOfItem(void * Item, TDirection Direction);

プロパティ

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

説明

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

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

関連項目

他の言語