Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxCheckComboBoxItems.AddCheckItem(TCaption,TCaption) Method

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

#Declaration

Delphi
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:

Delphi
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