IndexOf

IndexOf(IBehaviorProperty)

确定 IList 中特定项的索引。

public int IndexOf(IBehaviorProperty item)
参数类型描述
itemIBehaviorProperty要在 IList 中定位的对象。

返回值

如果在列表中找到 item 的索引;否则,返回 -1。

另见


IndexOf(string)

根据属性值确定 IList 中特定项的索引。

public int IndexOf(string propertyValue)
参数类型描述
propertyValueString属性的值

返回值

具有指定值的属性的索引

另见