System::Collections::Generic::List::IndexOf method
Contenido
[
Ocultar
]List::IndexOf(const T&) const method
Obtiene el primer índice del elemento específico.
int System::Collections::Generic::List<T>::IndexOf(const T &item) const override
| Parámetro | Tipo | Descripción |
|---|---|---|
| item | const T& | Elemento a buscar. |
ReturnValue
Índice de la primera aparición del elemento especificado o -1 si no se encuentra.
Ver también
- Class List
- Namespace System::Collections::Generic
- Library Aspose.Page for C++
List::IndexOf(const T&, int) const method
Busca un elemento específico en la lista.
int System::Collections::Generic::List<T>::IndexOf(const T &item, int index) const
| Parámetro | Tipo | Descripción |
|---|---|---|
| item | const T& | Elemento a buscar. |
| índice | int | Índice donde comenzar la búsqueda. |
ReturnValue
Índice de la primera instancia del elemento especificado o -1 si no se encuentra.
Ver también
- Class List
- Namespace System::Collections::Generic
- Library Aspose.Page for C++