ParagraphCollection
ParagraphCollection
概述
ParagraphCollection 是 Aspose.Slides FOSS 中用于 Python 的一个类。继承自:BaseCollection、IParagraphCollection、ISlideComponent。
表示一组段落。
此类提供 7 个方法,用于在 Python 程序中处理 ParagraphCollection 对象。可用的方法包括:add、clear、contains、index_of、insert、remove、remove_at。在安装了 Aspose.Slides FOSS for Python 包后,所有公共成员对任何 Python 应用程序均可访问。属性:as_i_enumerable、as_i_presentation_component、as_i_slide_component、count、is_read_only、length,以及另外 2 项。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
count | int | 读取 | 获取集合中实际包含的元素数量。 |
is_read_only | bool | 读取 | 获取一个值,指示是否为只读。 |
as_i_slide_component | ISlideComponent | 读取 | 获取 as i slide 组件。 |
as_i_enumerable | Any | 读取 | 获取集合作为 IEnumerable。 |
slide | IBaseSlide | 读取 | 获取幻灯片。 |
as_i_presentation_component | IPresentationComponent | 读取 | 获取 as i 演示组件。 |
presentation | IPresentation | 读取 | 获取演示文稿。 |
length | int | 读取 | 返回元素的数量。 |
方法
| 签名 | 描述 |
|---|---|
add() | 向集合中追加一个新段落 |
insert() | 在指定索引处插入段落 |
index_of(item) → int | 返回给定段落的零基索引,如果未找到则返回 -1 |
clear() | |
contains(item) → bool | 检查指定的段落是否存在于集合中 |
remove_at(index) | |
remove(item) → bool |