[Overview][Types][Classes][Procedures and functions][Index] |
Adds the specified item and object instance to the control.
Source position: comboex.pas line 168
public procedure TCustomComboBoxEx.AddItem( |
const Item: string; |
AnObject: TObject |
); override; |
Item |
|
Item added to the control. |
AnObject |
|
Object with data for the item added to the control. |
AddItem is a procedure used to create a new item in the extended combo-box control with the specified caption and object data. Item contains the caption assigned to the new TComboExItem instance. AnObject is an object with the data stored in the new TComboExItem instance.
AddItem calls Insert to create, update, and store the item in the ItemsEx property.
|
Collection with the extended items defined for the control. |
|
|
Text displayed for the collection item. |
|
|
Pointer to the data used in custom sort operations. |