System::Collections::CollectionBase::ListImpl::IndexOf 方法
ListImpl::IndexOf method
搜索指定元素并返回其在整个集合中首次出现的零基索引。
int32_t System::Collections::CollectionBase<T>::ListImpl::IndexOf(const T &value)
| 参数 | 类型 | 描述 |
|---|---|---|
| 值 | const T& | 要在集合中定位的元素。 |
ReturnValue
如果找到,则返回整个集合中 value 首次出现的零基索引;否则为 -1。
另见
- Class ListImpl
- Class CollectionBase
- Namespace System::Collections
- Library Aspose.Font for C++