IParagraphCollection

IParagraphCollection 接口

表示段落集合。

public interface IParagraphCollection : IEnumerable<IParagraph>, ISlideComponent

属性

名称描述
AsIEnumerable { get; }返回 IEnumerable 接口。只读 IEnumerable。
AsISlideComponent { get; }允许获取基本的 ISlideComponent 接口。只读 ISlideComponent
Count { get; }获取集合中实际包含的元素数量。只读 Int32。
Item { get; }获取指定索引处的元素。

方法

名称描述
Add(IParagraph)将一个段落添加到集合的末尾。
Add(IParagraphCollection)将一个 ParagraphCollection 的内容添加到集合的末尾。
AddFromHtml(string)从指定的 HTML 字符串向集合中添加文本。
AddFromHtml(string, IExternalResourceResolver, string)从指定的 HTML 字符串向集合中添加文本。
Clear()从集合中移除所有元素。
ExportToHtml(int, int, ITextToHtmlConversionOptions)将指定的段落转换为 HTML 并以字符串对象返回。
Insert(int, IParagraph)在指定索引处向集合中插入一个段落。
Insert(int, IParagraphCollection)在指定索引处将 ParagraphCollection 的内容插入到集合中。
Remove(IParagraph)移除特定段落的第一次出现。
RemoveAt(int)移除集合中指定索引处的元素。

参见