Vcl.ComCtrls.TComboExItems.AddItem
Delphi
function AddItem(const Caption: string; const ImageIndex, SelectedImageIndex, OverlayImageIndex, Indent: Integer; Data: TCustomData): TComboExItem;
C++
TComboExItem* __fastcall AddItem(const System::UnicodeString Caption, const int ImageIndex, const int SelectedImageIndex, const int OverlayImageIndex, const int Indent, void * Data);
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
function | public | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TComboExItems |
Description
Ajoute un nouvel élément à la collection et initialise ses propriétés.
Appelez AddItem pour ajouter un nouvel élément à la collection. Add instancie un objet dont le type a été spécifié au moment de la création de l'instance de TlistControlItems. Elle affecte ensuite une valeur aux paramètres Caption, ImageIndex, SelectedImageIndex, OverlayImageIndex, Indent et Data des propriétés TComboExItem de même nom.