System::Collections::ObjectModel::ReadOnlyCollection::IndexOf method
ReadOnlyCollection::IndexOf method
在集合中查找特定项。
virtual int System::Collections::ObjectModel::ReadOnlyCollection<T>::IndexOf(const T &item) const override
| Parameter | Type | 描述 |
|---|---|---|
| item | const T& | 要查找的项。 |
ReturnValue
指定项首次出现的索引,若未找到则为负值。
另见
- Class ReadOnlyCollection
- Namespace System::Collections::ObjectModel
- Library Aspose.Page for C++