Méthode System::Collections::Generic::List::IndexOf
Contenu
[
Cacher
]List::IndexOf(const T&) const method
Obtient le premier indice de l’élément spécifique.
int System::Collections::Generic::List<T>::IndexOf(const T &item) const override
| Paramètre | Type | Description |
|---|---|---|
| élément | const T& | Élément à rechercher. |
ReturnValue
Indice de la première occurrence de l’élément spécifié ou -1 si non trouvé.
Voir aussi
- Class List
- Namespace System::Collections::Generic
- Library Aspose.Font for C++
List::IndexOf(const T&, int) const method
Recherche l’élément spécifique dans la liste.
int System::Collections::Generic::List<T>::IndexOf(const T &item, int index) const
| Paramètre | Type | Description |
|---|---|---|
| élément | const T& | Élément à rechercher. |
| indice | int | Indice à partir duquel commencer la recherche. |
ReturnValue
Indice de la première occurrence de l’élément spécifié ou -1 si non trouvé.
Voir aussi
- Class List
- Namespace System::Collections::Generic
- Library Aspose.Font for C++