IndexOf

BehaviorCollection.IndexOf 方法

确定 IList 中特定项的索引。

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

返回值

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

参见