IndexOf
BehaviorCollection.IndexOf 方法
确定 IList 中特定项的索引。
public int IndexOf(IBehavior item)
参数 | 类型 | 描述 |
---|---|---|
item | IBehavior | 要在 IList 中定位的对象。 |
返回值
如果在列表中找到 item,则返回其索引;否则返回 -1。
确定 IList 中特定项的索引。
public int IndexOf(IBehavior item)
参数 | 类型 | 描述 |
---|---|---|
item | IBehavior | 要在 IList 中定位的对象。 |
如果在列表中找到 item,则返回其索引;否则返回 -1。