FMX.ImgList.TSourceCollection.IndexOf
Delphi
function IndexOf(const Name: string): Integer;
C++
int __fastcall IndexOf(const System::UnicodeString Name);
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
function | public | FMX.ImgList.pas FMX.ImgList.hpp |
FMX.ImgList | TSourceCollection |
Description
Recherche l'élément source ayant la valeur Name
spécifiée et renvoie l'index de cet élément dans la collection source en cours.
Dans la collection TSourceCollection en cours, IndexOf essaie de trouver l'élément source ayant le nom spécifié par Name
(en tenant compte de la distinction majuscules/minuscules). Si la recherche aboutit, IndexOf renvoie l'index de l'élément TCustomSourceItem trouvé. Sinon, IndexOf renvoie -1
.