RAD Studio VCL Reference
TCustomListControl.SetItemIndex Method

Sets the value of the ItemIndex property.

procedure SetItemIndex(const Value: Integer); virtual; abstract; overload;
virtual __fastcall SetItemIndex(const int Value) = 0;

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). 


Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!