ColumnCollection
ColumnCollection
概述
ColumnCollection 是 Aspose.Slides FOSS 中用于 Python 的类。继承自:BaseCollection、IColumnCollection。
表示表格中的列集合。
此类提供 3 个方法,用于在 Python 程序中处理 ColumnCollection 对象。可用的方法包括:add_clone、insert_clone、remove_at。在安装了 Aspose.Slides FOSS for Python 包后,所有公共成员对任何 Python 应用程序均可访问。属性:as_i_collection、as_i_enumerable、length。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
as_i_collection | list | 读取 | 获取 as i 集合。 |
as_i_enumerable | Any | 读取 | 获取作为 IEnumerable 的集合。 |
length | int | 读取 | 返回元素的数量。 |
方法
| 签名 | 描述 |
|---|---|
add_clone(templ, with_attached_columns) → list[IColumn] | 添加模板列的克隆副本,可选地附带列,并返回 IColumn 的列表 |
insert_clone(index, templ, with_attached_columns) → list[IColumn] | 在给定索引处插入模板列的克隆副本,可选地附带列,返回 IColumn 的列表 |
remove_at(first_column_index, with_attached_rows) | 从指定索引开始删除列,可选地也删除附带的行 |