辰峰微网

TcxCheckComboBoxItems.AddCheckItem

Jack·高峰 2009 阅读
文章摘要

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

当前字体大小 15px
12px 50px

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.


分享到:
收藏

    发表评论