Skip to main content

TcxCheckComboBoxItems.AddCheckItem(TCaption,TCaption) Method

Creates a new item with the specified caption and adds it to the current collection.

Declaration

function AddCheckItem(const ADescription: TCaption; const AShortDescription: TCaption = ''): TcxCheckComboBoxItem;

Parameters

Name Type
ADescription TCaption
AShortDescription TCaption

Returns

Type
TcxCheckComboBoxItem

Remarks

The AddCheckItem function allows you to create a new item in the current collection and set its Description and ShortDescription properties. The values used to initialize these properties are passed as the ADescription and AShortDescription parameters correspondingly.

You can use the AddCheckItem method as follows:

procedure TForm1.Button1Click(Sender: TObject);
begin
  cxCheckComboBox1.Properties.Items.AddCheckItem('New item', '<New>');
end;

The Add method allows you to add an item with an empty description and short description. You should then use the item’s properties to specify its descriptions and enabled status.

See Also