ParagraphCollection

ParagraphCollection class

表示段落的集合。

public sealed class ParagraphCollection : DomObject<TextFrame>, IParagraphCollection

Properties

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

Methods

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

See Also