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