IndexOf

IBehaviorCollection.IndexOf 方法

确定 IList 中特定项的索引。

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

返回值

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

参见