GridColumnStylesCollection.IList.IndexOf(Object) GridColumnStylesCollection.IList.IndexOf(Object) GridColumnStylesCollection.IList.IndexOf(Object) Method

定义

返回指定对象在集合中的第一个匹配项的从零开始的索引。Returns the zero-based index of the first occurrence of the specified object in the collection.

 virtual int System.Collections.IList.IndexOf(System::Object ^ value) = System::Collections::IList::IndexOf;
int IList.IndexOf (object value);
Function IndexOf (value As Object) As Integer Implements IList.IndexOf

参数

value
Object Object Object

要在集合中定位的对象。The object to locate in the collection. 该值可以为 nullThe value can be null.

返回

如果在集合中找到 value 参数的第一个匹配项,则为该项的从零开始的索引;否则为 -1。The zero-based index of the first occurrence of the value parameter within the collection, if found; otherwise, -1.

实现

适用于