RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomListView.SetItemIndex Method

Sets the value of the ItemIndex property.

Pascal
procedure SetItemIndex(const Value: Integer); override;
C++
virtual __fastcall SetItemIndex(const int Value);

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!