System::Collections::ObjectModel::Collection::IndexOf 方法

Collection::IndexOf method

在集合中查找元素。

int System::Collections::ObjectModel::Collection<T>::IndexOf(const T &item) const override
参数类型描述
const T&要查找的项。

ReturnValue

指定项首次出现的索引,如果未找到则为 -1。

另见