System::Collections::ObjectModel::ReadOnlyCollection::IndexOf method

ReadOnlyCollection::IndexOf method

在集合中查找特定项。

virtual int System::Collections::ObjectModel::ReadOnlyCollection<T>::IndexOf(const T &item) const override
ParameterType描述
itemconst T&要查找的项。

ReturnValue

指定项首次出现的索引,若未找到则为负值。

另见