IndexOf

ParagraphCollection.IndexOf method

确定IList中特定项目的索引。

public int IndexOf(IParagraph item)
范围类型描述
itemIParagraph在IList中定位的对象.

返回值

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

也可以看看