CellCollection
概述
CellCollection 是 Aspose.Slides FOSS for C++ 中的一个类。
表示一个表格单元格的集合。
此类提供 36 种方法,用于在 C++ 程序中处理 CellCollection 对象。可用的方法包括:Cell、CellCollection、IBaseSlide、IPresentationComponent、ISlideComponent、add、as_i_collection、as_i_enumerable、as_i_presentation_component、as_i_slide_component、begin、clear,以及另外 9 种方法。安装 Aspose.Slides FOSS for C++ 包后,所有公共成员对任何 C++ 应用程序均可访问。属性:Cell、IBaseSlide、IPresentationComponent、ISlideComponent、const_iterator、iterator。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
Cell | Cell | 读取 | 获取单元格。 |
IBaseSlide | IBaseSlide | 读取 | 获取 i 基础幻灯片。 |
ISlideComponent | ISlideComponent | 读取 | 获取 i 幻灯片组件。 |
IPresentationComponent | IPresentationComponent | 读取 | 获取 i 演示组件。 |
iterator | iterator | 读取 | 获取迭代器。 |
const_iterator | const_iterator | 读取 | 获取 const 迭代器。 |
方法
| 签名 | 描述 |
|---|---|
Cell() → Cell | 属性提供对集合中 Cell 的访问 |
Cell() → Cell | |
Cell() → Cell | |
Cell() → Cell | |
IBaseSlide() → IBaseSlide | 属性提供对关联的 IBaseSlide 的访问。 |
IBaseSlide() → IBaseSlide | |
ISlideComponent() → ISlideComponent | 属性提供对相关的 ISlideComponent 的访问。 |
ISlideComponent() → ISlideComponent | |
IPresentationComponent() → IPresentationComponent | 属性提供对已链接的 IPresentationComponent 的访问 |
IPresentationComponent() → IPresentationComponent | |
iterator() → iterator | 返回指向集合首个元素的迭代器 |
iterator() → iterator | |
const_iterator() → const_iterator | 返回指向集合首个元素的 const 迭代器 |
const_iterator() → const_iterator | |
CellCollection() | |
~CellCollection() | |
init_internal(cells: std::vector<std::unique_ptr<Cell>>, parent_slide: IBaseSlide) | 使用单元格和父幻灯片上下文初始化集合。 |
size() → std::size_t | 返回单元格的数量。 |
add(cell: std::unique_ptr<Cell>) → Cell | 向集合中添加一个单元格。 |
add() → Cell | 向集合中添加一个单元格。 |
clear() | 移除所有单元格。 |
slide() → IBaseSlide | 返回此 CellCollection 的父幻灯片。只读。 |
slide() → IBaseSlide | 返回此 CellCollection 的父幻灯片。只读。 |
set_slide(slide: IBaseSlide) | 设置父幻灯片。 |
presentation() → IPresentation | 返回此 CellCollection 的父级呈现。只读。 |
presentation() → IPresentation | 返回此 CellCollection 的父级呈现。只读。 |
as_i_slide_component() → ISlideComponent | 允许获取基础 ISlideComponent 接口。只读。 |
as_i_slide_component() → ISlideComponent | 允许获取基础 ISlideComponent 接口。只读。 |
as_i_presentation_component() → IPresentationComponent | 允许获取基础 IPresentationComponent 接口。只读。 |
as_i_presentation_component() → IPresentationComponent | 允许获取基础 IPresentationComponent 接口。只读。 |
as_i_collection() → std::vector<Cell*> | 返回单元格的快照,作为原始指针。 |
as_i_enumerable() → std::vector<Cell*> | 返回单元格的快照,作为原始指针(与 as_i_collection 相同)。 |
begin() → iterator | |
end() → iterator | |
begin() → const_iterator | |
end() → const_iterator |