TcxCheckComboBoxItems.AddCheckItem
TcxCheckComboBoxItems.AddCheckItem
TcxCheckComboBoxItems See Also
Creates a new item with the specified caption and adds it to the current collection.
function AddCheckItem(const ADescription: TCaption; const AShortDescription: TCaption = ''): TcxCheckComboBoxItem;
Description
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 properties to specify its descriptions and enabled status.
📱 扫码关注公众号
扫描二维码关注我们,获取更多精彩内容
实时更新 · 干货满满