System::Collections::Generic::IList::IndexOf 方法
IList::IndexOf method
获取项在容器中首次出现的索引。
virtual int System::Collections::Generic::IList<T>::IndexOf(const T &item) const =0
| 参数 | 类型 | 描述 |
|---|---|---|
| 项 | const T& | 要查找的项。 |
ReturnValue
容器中项第一次出现的索引,若未找到则为 -1。
另见
- Class IList
- Namespace System::Collections::Generic
- Library Aspose.Font for C++