IndexOf

IPortionCollection.IndexOf method

确定集合中特定部分的索引。

public int IndexOf(IPortion item)
范围类型描述
itemIPortion要在集合中定位的部分。

返回值

item的索引(如果在集合中找到);否则,-1。

也可以看看