Vcl.Controls.TCustomListControl.SetItemIndex
Delphi
procedure SetItemIndex(const Value: Integer); overload; virtual; abstract;
C++
virtual void __fastcall SetItemIndex(const int Value) = 0 /* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | Vcl.Controls.pas Vcl.Controls.hpp |
Vcl.Controls | TCustomListControl |
Description
Sets the value of the ItemIndex property.
Override SetItemIndex to provide the write implementation for the ItemIndex property.
Value represents the index of the item to select, where the first item in the list has index 0, the second item has index 1, and so on. If Value is –1, SetItemIndex deselects all items (the same as the ClearSelection method).