IndexOf

ParagraphCollection.IndexOf method

确定 IList 中特定项的索引。

public int IndexOf(IParagraph item)
参数类型描述
itemIParagraph要在 IList 中定位的对象。

返回值

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

另见