GridTableStylesCollection.IList.IndexOf(Object) 方法

定义

返回指定对象在集合中的第一个匹配项的从零开始的索引。

 virtual int System.Collections.IList.IndexOf(System::Object ^ value) = System::Collections::IList::IndexOf;
int IList.IndexOf (object value);
abstract member System.Collections.IList.IndexOf : obj -> int
override this.System.Collections.IList.IndexOf : obj -> int
Function IndexOf (value As Object) As Integer Implements IList.IndexOf

参数

value
Object

要在集合中定位的对象。 该值可以为 null

返回

Int32

如果在整个集合中找到值的第一个匹配项,则为该项的从零开始的索引;否则为 -1。

实现

适用于