## Collection::IndexOf method


يبحث عن عنصر في المجموعة.

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


| معامل | نوع | الوصف |
| --- | --- | --- |
| item | const T\& | العنصر المراد البحث عنه. |

### ReturnValue

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

## انظر أيضًا

* Class [Collection](../)
* Namespace [System::Collections::ObjectModel](../../)
* Library [Aspose.Font for C++](../../../)
