RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomCombo.SetItemIndex Method

Sets the value of the ItemIndex property.

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

SetItemIndex is the protected write implementation of the ItemIndex property. It selects an item in the drop-down list. 

Value is the item to select, where 0 indicates the first item, 1 indicates the second item, and so on. A negative Value causes all items to be unselected. 

 

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