Vcl.StdCtrls.TCustomCombo.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 TCustomCombo

Description

Deselects any selected items in the drop-down list.

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.

See Also