RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomListBox.ClearSelection Method

Deselects all selected items in the list box, if possible.

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

Use ClearSelection to deselect all the currently selected items in the list box. When the list box receives focus, after ClearSelection is called, the last item that was selected is the item that receives the current focus in the list box. Although this item receives focus, the item itself is not selected. 

 

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