IndexOf

IPortionCollection.IndexOf method

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

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

返回值

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

另请参见