Remove

ParagraphCollection.Remove 方法

从 ICollection 中删除特定对象的第一个出现。

public bool Remove(IParagraph item)
参数类型描述
itemIParagraph要从 ICollection 中删除的对象。

返回值

如果 item 被成功从 ICollection 中移除,则为 true;否则为 false。如果在原始 ICollection 中找不到 item,此方法也会返回 false。

异常

异常条件
NotSupportedExceptionICollection 是只读的。

另见