RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomCombo.ClearSelection Method

Deselects any selected items in the drop-down list.

Pascal
procedure ClearSelection; override;
C++
virtual __fastcall ClearSelection();

ClearSelection checks whether an item in the drop-down list is currently selected. If so, it deselects the item (sets ItemIndex to –1), and changes the Text property to an empty string. 

 

ItemIndex 

Text

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!