Skip to main content

TcxCustomCheckComboBoxProperties.EmptySelectionText Property

Specifies the text displayed in the control’s edit box when no items are checked.

Declaration

property EmptySelectionText: string read; write;

Property Value

Type
string

Remarks

The EmptySelectionText property specifies the string displayed in the edit box when no items are selected in the editor. By default, EmptySelectionText specifies the ‘None selected’ string.

When some of items are checked, the control displays their captions in the edit box separated by Delimiter strings.

The following image shows a sample check combo box with no items selected and the EmptySelectionText property set to ‘Empty’:

Value Sample
‘Empty’

You can disable displaying the string specified by the EmptySelectionText property. For this purpose, set the ShowEmptyText property to False.

The following example sets the EmptySelectionText property to ‘Empty’ when a form is created.

procedure TForm1.FormCreate(Sender: TObject);
begin
  cxCheckComboBox1.Properties.EmptySelectionText := 'Empty';
end;
See Also