首页 Delphi 正文
  • 本文约844字,阅读需4分钟
  • 1958
  • 0
举报该广告
TcxCheckComboBoxItems.AddCheckItem

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: TCap...

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.



📱 扫码关注公众号

公众号二维码

扫描二维码关注我们,获取更多精彩内容
实时更新 · 干货满满

收藏

扫描二维码,在手机上阅读
评论
更换验证码
友情链接