System::Collections::ObjectModel::Collection::IndexOf method

Collection::IndexOf method

コレクション内の要素を検索します。

int System::Collections::ObjectModel::Collection<T>::IndexOf(const T &item) const override
パラメーター説明
項目const T&検索対象の項目。

ReturnValue

指定された項目の最初の出現位置のインデックス、見つからない場合は -1。

参照