Vcl.Controls.TCustomListControl.SetItemIndex

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

Delphi

procedure SetItemIndex(const Value: Integer); overload; virtual; abstract;

C++

virtual void __fastcall SetItemIndex(const int Value) = 0 /* overload */;

プロパティ

種類 可視性 ソース ユニット
procedure
function
protected
Vcl.Controls.pas
Vcl.Controls.hpp
Vcl.Controls TCustomListControl

説明

ItemIndex プロパティの値を設定します。

SetItemIndex メソッドをオーバーライドすると,ItemIndex プロパティの書き込み実装を提供できます。

Value は,選択する項目のインデックスを表します。リスト内の最初の項目は 0,2 番めの項目は 1 になります。Value が -1 の場合,SetItemIndex は,すべての項目の選択を解除します(ClearSelection メソッドと同じ)。

関連項目