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 项。

属性

名称类型访问描述
countint读取获取集合中实际包含的元素数量。
is_read_onlybool读取获取一个值,指示是否为只读。
as_i_slide_componentISlideComponent读取获取 as i slide 组件。
as_i_enumerableAny读取获取集合作为 IEnumerable。
slideIBaseSlide读取获取幻灯片。
as_i_presentation_componentIPresentationComponent读取获取 as i 演示组件。
presentationIPresentation读取获取演示文稿。
lengthint读取返回元素的数量。

方法

签名描述
add()向集合中追加一个新段落
insert()在指定索引处插入段落
index_of(item) → int返回给定段落的零基索引,如果未找到则返回 -1
clear()
contains(item) → bool检查指定的段落是否存在于集合中
remove_at(index)
remove(item) → bool

另请参阅

 中文