IndexOf

IndexOf(PropertyDescriptor)

确定 System.Collections.Generic.IList. 中特定项目的索引

public int IndexOf(PropertyDescriptor item)
范围类型描述
itemPropertyDescriptor在 System.Collections.Generic.IList 中定位的对象。

返回值

如果在列表中找到项目的索引;否则,-1。

也可以看看


IndexOf(string)

确定 System.Collections.Generic.IList. 中特定项目的索引

public int IndexOf(string name)
范围类型描述
nameString用于指代属性的名称。

返回值

如果在列表中找到项目的索引;否则,-1。

也可以看看