## IList::IndexOf method


يحصل على الفهرس الأول للعنصر المحدد.

```cpp
virtual int System::Collections::IList::IndexOf(SharedPtr<System::Object> item) const =0
```


| Parameter | Type | الوصف |
| --- | --- | --- |
| العنصر | SharedPtr\<System::Object\> | العنصر المراد البحث عنه. |

### ReturnValue

فهرس أول ظهور للعنصر المحدد، وإلا -1.

## انظر أيضًا

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Object](../../../system/object/)
* Class [IList](../)
* Namespace [System::Collections](../../)
* Library [Aspose.Page for C++](../../../)
