GraphicElementCollection
GraphicElementCollection
概述
GraphicElementCollection 是 Aspose.PDF FOSS 中用于 Python 的类。
可添加到页面或从页面移除的图形元素集合。
此类提供 3 种方法,用于在 Python 程序中处理 GraphicElementCollection 对象。可用的方法包括:__init__、add、remove。在安装 Aspose.PDF FOSS for Python 包后,所有公共成员对任何 Python 应用程序均可访问。属性:elements。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
elements | list[Any] | 读取 | 获取图形元素的集合。 |
方法
| 签名 | 描述 |
|---|---|
__init__() | 初始化一个新的 GraphicElementCollection 实例。 |
add(element: Any) | 向集合中添加图形元素。 |
remove(element: Any) | 从集合中移除图形元素。 |