ListSortDescriptionCollection.IndexOf(Object) 方法
定义
返回集合中指定项的索引。Returns the index of the specified item in the collection.
public:
virtual int IndexOf(System::Object ^ value);
public int IndexOf (object value);
abstract member IndexOf : obj -> int
override this.IndexOf : obj -> int
Public Function IndexOf (value As Object) As Integer
参数
返回
如果在列表中找到,则为 value 的索引;否则为 -1。The index of value if found in the list; otherwise, -1.