RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TListControlClearSelection Class

TListControlClearSelection deselects all selected items in a list control (list view or list box).

Pascal
TListControlClearSelection = class(TListControlAction);
C++
class TListControlClearSelection : public TListControlAction;

Add TListControlClearSelection to an action list to allow users to deselect any selected items of a list control by using menu items or toolbar buttons. Controls such as menu items and tool buttons linked to this action cause the application to deselect all selected items in the target control. 

TListControlClearSelection is designed to work with a list control (TCustomListControl descendant) as a target. TListControlClearSelection automatically disables itself if the target control is not a list control or if that list box or list view has no selected items. 

 

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