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