ColumnCollection
概述
ColumnCollection 是 Aspose.Slides FOSS for C++ 中的一个类。
表示表中列的集合。
此类提供 19 个用于在 C++ 程序中操作 ColumnCollection 对象的方法。可用的方法包括:ColumnCollection、add、add_clone、as_i_collection、as_i_enumerable、begin、clear、const_iterator、end、insert_clone、iterator、remove_at,以及另外 2 个方法。安装 Aspose.Slides FOSS for C++ 包后,所有公共成员对任何 C++ 应用程序均可访问。属性:const_iterator、iterator。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
iterator | iterator | 读取 | 获取迭代器。 |
const_iterator | const_iterator | 读取 | 获取常量迭代器。 |
方法
| 签名 | 描述 |
|---|---|
iterator() → iterator | 属性提供一个迭代器,指向集合中的第一列 |
iterator() → iterator | |
const_iterator() → const_iterator | 属性提供一个 const 迭代器指向第一列,以实现只读访问 |
const_iterator() → const_iterator | |
ColumnCollection() | |
~ColumnCollection() | |
size() → std::size_t | 返回列的数量。 |
add(col: std::unique_ptr<Column>) → Column | 向集合中添加一列。 |
add_clone(templ: Column, with_attached_columns: bool) → std::vector<Column*> | 克隆给定的模板列并将其追加到末尾。 |
insert_clone(index: std::size_t, templ: Column, with_attached_columns: bool) → std::vector<Column*> | 克隆给定的模板列并将其插入到指定索引位置。 |
remove_at(first_column_index: std::size_t, with_attached_rows: bool) | 删除给定索引处的列。 |
remove_at(index: std::size_t) | 删除给定索引处的列。 |
clear() | 删除所有列。 |
as_i_collection() → std::vector<Column*> | 返回列的快照,以原始指针形式。 |
as_i_enumerable() → std::vector<Column*> | 返回列的快照,以原始指针形式(同 as_i_collection)。 |
begin() → iterator | |
end() → iterator | |
begin() → const_iterator | |
end() → const_iterator |