Vcl.ComCtrls.TComboBoxExStrings.IndexOf
Delphi
function IndexOf(const S: String): Integer; override;
C++
virtual int __fastcall IndexOf(const System::UnicodeString S);
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
function | public | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TComboBoxExStrings |
Description
Renvoie l'indice du premier élément dans la liste associée à une chaîne donnée.
Appelez IndexOf pour obtenir l'indice du premier élément TComboExItem dans la liste, spécifiant son libellé. IndexOf effectue une recherche insensible à la casse à travers les libellés de l'élément. Si aucun index n'est trouvé, IndexOf renvoie -1.