System::Collections::Generic::List::IndexOf método
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 |
|---|---|---|
| elemento | const T& | Elemento a buscar. |
ReturnValue
Index of first occurance of specified item or -1 if not found.
Ver también
- Class List
- Namespace System::Collections::Generic
- Library Aspose.PDF 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 |
|---|---|---|
| elemento | const T& | Elemento a buscar. |
| index | int | Index para iniciar la búsqueda en. |
ReturnValue
Index of first instance of specified item or -1 if not found.
Ver también
- Class List
- Namespace System::Collections::Generic
- Library Aspose.PDF for C++