## List::IndexOf(const T\&) const method


Mendapatkan indeks pertama dari item tertentu.

```cpp
int System::Collections::Generic::List<T>::IndexOf(const T &item) const override
```


| Parameter | Tipe | Deskripsi |
| --- | --- | --- |
| item | const T\& | Item yang dicari. |

### ReturnValue

Indeks kemunculan pertama dari item yang ditentukan atau -1 jika tidak ditemukan.

## Lihat Juga

* Class [List](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.Page for C++](../../../)
## List::IndexOf(const T\&, int) const method


Mencari item tertentu dalam daftar.

```cpp
int System::Collections::Generic::List<T>::IndexOf(const T &item, int index) const
```


| Parameter | Tipe | Deskripsi |
| --- | --- | --- |
| item | const T\& | Item yang dicari. |
| indeks | int | Indeks untuk memulai pencarian. |

### ReturnValue

Indeks instansi pertama dari item yang ditentukan atau -1 jika tidak ditemukan.

## Lihat Juga

* Class [List](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.Page for C++](../../../)
