ParagraphCollection

ParagraphCollection 类

表示一组段落。

public sealed class ParagraphCollection : DomObject<TextFrame>, IParagraphCollection

属性

名称描述
Count { get; }获取集合中实际包含的元素数量。只读 Int32。
IsReadOnly { get; }获取一个值,指示 ICollection 是否为只读。只读 Boolean。
Item { get; }获取指定索引处的元素。

方法

名称描述
Add(IParagraph)将 Paragraph 添加到集合的末尾。
Add(IParagraphCollection)将 ParagraphCollection 的内容添加到集合的末尾。
AddFromHtml(string)从指定的 html 字符串向集合添加文本。
AddFromHtml(string, IExternalResourceResolver, string)从指定的 html 字符串向集合添加文本。
Clear()从集合中移除所有元素。
Contains(IParagraph)确定 ICollection 是否包含特定值。
CopyTo(IParagraph[], int)将 ICollection 的元素复制到数组,从指定的数组索引开始。
ExportToHtml(int, int, ITextToHtmlConversionOptions)将指定的段落转换为 HTML,并作为 String 对象返回。
GetEnumerator()返回一个可遍历集合的枚举器。
IndexOf(IParagraph)确定 IList 中特定项的索引。
Insert(int, IParagraph)在指定索引处向集合插入 Paragraph。
Insert(int, IParagraphCollection)在指定索引处向集合插入 ParagraphCollection 的内容。
Remove(IParagraph)从 ICollection 中移除特定对象的第一次出现。
RemoveAt(int)移除集合中指定索引处的元素。

另请参见