ParagraphCollection
概述
ParagraphCollection 是 Aspose.Slides FOSS for C++ 中的一个类。
管理文本框中段落的集合。
此类提供 35 个用于在 C++ 程序中处理 ParagraphCollection 对象的方法。可用的方法包括:ConstIterator、Iterator、ParagraphCollection、add、as_i_enumerable、as_i_presentation_component、as_i_slide_component、begin、clear、contains、end、index_of,以及另外 11 个方法。安装 Aspose.Slides FOSS for C++ 包后,所有公共成员对任何 C++ 应用程序均可访问。属性:ConstIterator、Iterator、ParagraphCollection、pointer、reference。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
ParagraphCollection | ParagraphCollection | 读取 | 获取段落集合。 |
reference | reference | 读取 | 获取引用。 |
pointer | pointer | 读取 | 获取指针。 |
Iterator | Iterator | 读取 | 获取迭代器。 |
ConstIterator | ConstIterator | 读取 | 获取 const 迭代器。 |
方法
| 签名 | 描述 |
|---|---|
ParagraphCollection() → ParagraphCollection | 属性表示集合实例本身 |
reference() → reference | 属性提供对集合的引用访问 |
pointer() → pointer | |
Iterator() → Iterator | 属性表示集合使用的迭代器类型 |
Iterator() → Iterator | |
reference() → reference | |
pointer() → pointer | |
ConstIterator() → ConstIterator | |
ConstIterator() → ConstIterator | |
ParagraphCollection() | |
init_internal(txbody_element: pugi::xml_node, slide_part: Internal::pptx::SlidePart, parent_slide: IBaseSlide) | 从 XML 初始化,进入 XML 支持的模式。 |
size() → std::size_t | 返回段落的数量。 |
add(paragraph: Paragraph) → Paragraph | 在集合末尾添加一个段落。 |
insert(index: std::size_t, paragraph: Paragraph) → Paragraph | 在给定索引处插入段落。 |
remove_at(index: std::size_t) | 删除给定索引处的段落。 |
remove(item: Paragraph) → bool | 从集合中删除给定的段落。 |
clear() | 删除所有段落。 |
is_read_only() → bool | 返回集合是否为只读(始终为 false)。 |
index_of(item: Paragraph) → std::optional<std::size_t> | 返回给定段落的索引,如果未找到,则返回 std::nullopt。 |
contains(item: Paragraph) → bool | 返回集合是否包含给定段落。 |
as_i_slide_component() → ISlideComponent | 允许获取基础 ISlideComponent 接口。只读。 |
as_i_slide_component() → ISlideComponent | 允许获取基础 ISlideComponent 接口。只读。 |
as_i_enumerable() → IParagraphCollection | 返回对该集合的引用,作为通用可枚举接口。 |
as_i_enumerable() → IParagraphCollection | 返回对该集合的引用,作为通用可枚举接口。 |
slide() → IBaseSlide | |
slide() → IBaseSlide | |
as_i_presentation_component() → IPresentationComponent | |
as_i_presentation_component() → IPresentationComponent | |
presentation() → IPresentation | |
presentation() → IPresentation | |
set_slide(slide: IBaseSlide) | 为此集合设置父幻灯片。 |
begin() → Iterator | 返回指向第一个段落的迭代器 |
end() → Iterator | 返回指向最后一个段落之后的迭代器 |
begin() → ConstIterator | |
end() → ConstIterator |