IParagraphCollection

IParagraphCollection 接口

表示一个段落的集合。

public interface IParagraphCollection : IEnumerable<IParagraph>, ISlideComponent

属性

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

方法

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

另见