API:Vcl.ComCtrls.TComboBoxExStrings.IndexOf

De RAD Studio API Documentation
Aller à : navigation, rechercher

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 la position d'une chaîne dans la liste.

Vcl.ComCtrls.TComboBoxExStrings.IndexOf hérite de Vcl.StdCtrls.TCustomComboBoxStrings.IndexOf. Tout le contenu en-dessous de cette ligne se réfère à Vcl.StdCtrls.TCustomComboBoxStrings.IndexOf.

Renvoie la position d'une chaîne dans la liste.

Appelez IndexOf pour obtenir la position de la première occurrence d'une chaîne correspondant exactement à S (S ne peut pas être le préfixe d'une chaîne de la boîte à options).

IndexOf renvoie l'indice de base zéro de la chaîne. Si S correspond à la première chaîne de la liste, IndexOf renvoie 0, si S est la deuxième chaîne, IndexOf renvoie 1, etc. Si la chaîne n'a pas de correspondance dans la liste de chaînes, IndexOf renvoie -1.

Voir aussi