ParagraphCollection

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。

属性

名称类型访问描述
ParagraphCollectionParagraphCollection读取获取段落集合。
referencereference读取获取引用。
pointerpointer读取获取指针。
IteratorIterator读取获取迭代器。
ConstIteratorConstIterator读取获取 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

另请参阅

 中文