Vcl.ComCtrls.TListItems.IndexOf
Delphi
function IndexOf(Value: TListItem): Integer;
C++
int __fastcall IndexOf(TListItem* Value);
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TListItems |
説明
リストビューウィンドウ内でのリスト項目の位置を返します。
IndexOf メソッドを呼び出すと,Value パラメータで指定したリスト項目の位置を判定できます。指定したリスト項目がリストビューにない場合,IndexOf は -1 を返します。