[Overview][Types][Classes][Procedures and functions][Index] |
Adds a new item with the specified values to the collection.
Source position: comboex.pas line 128
public function TComboExItems.AddItem( |
const ACaption: string; |
AImageIndex: SmallInt = - 1; |
AOverlayImageIndex: SmallInt = - 1; |
ASelectedImageIndex: SmallInt = - 1; |
AIndent: SmallInt = - 1; |
AData: TCustomData = Nil |
):TComboExItem; |
ACaption |
|
Caption for the item. |
AImageIndex |
|
Image index for the item. |
AOverlayImageIndex |
|
Overlay image index for the item. |
ASelectedImageIndex |
|
Selected image index for the item. |
AIndent |
|
Indent spacing for the item. |
AData |
|
Pointer to the arbitrary data associated with the item. |
Item added to the collection.
AddItem is a TComboExItem function used to add a new item to the collection with the values specified in the parameters passed to the method. AddItem calls the Add method to create a new TComboExItem instance. The following properties are updated in the collection item to use the values specified in the arguments:
|
Adds a new item to the collection. |
|
|
Space reserved between the Image and the caption for the item. |
|
|
Ordinal position for the image drawn as an overlay for the Image in the combo-box item. |
|
|
Ordinal position for the image drawn when the item is selected in the Combo-Box. |
|
|
Pointer to the data used in custom sort operations. |
|
|
Text displayed for the collection item. |
|
|
Ordinal position for the image displayed for the collection item. |
Version 4.0 | Generated 2025-05-03 | Home |