Vcl.StdCtrls.TCustomListBox.ClearSelection

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure ClearSelection; override;

C++

virtual void __fastcall ClearSelection();

Properties

Type Visibility Source Unit Parent
procedure
function
public
Vcl.StdCtrls.pas
Vcl.StdCtrls.hpp
Vcl.StdCtrls TCustomListBox

Description

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

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.

See Also