## IList::IndexOf method


يحصل على فهرس الظهور الأول للعنصر في الحاوية.

```cpp
virtual int System::Collections::Generic::IList<T>::IndexOf(const T &item) const =0
```


| Parameter | Type | الوصف |
| --- | --- | --- |
| العنصر | const T\& | العنصر للبحث عنه. |

### ReturnValue

فهرس الظهور الأول للعنصر في الحاوية أو -1 إذا لم يُعثر عليه.

## انظر أيضًا

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