CommentAuthorCollection

CommentAuthorCollection

概述

CommentAuthorCollection 是 Aspose.Slides 为 C++ 提供的 FOSS 中的一个类。

管理演示文稿中评论作者的集合。

此类提供 24 个方法,用于在 C++ 程序中操作 CommentAuthorCollection 对象。可用的方法包括:CommentAuthorCollection、add_author、as_i_collection、as_i_enumerable、begin、clear、end、find_by_name、find_by_name_and_initials、init_internal、remove、remove_at,以及另外 2 个方法。安装 Aspose.Slides 为 C++ 提供的 FOSS 包后,所有公共成员对任何 C++ 应用程序均可访问。属性:CommentAuthorCollection。

属性

名称类型访问描述
CommentAuthorCollectionCommentAuthorCollection读取获取评论作者集合。

方法

签名描述
CommentAuthorCollection() → CommentAuthorCollection属性提供对集合实例的访问
CommentAuthorCollection() → CommentAuthorCollection
CommentAuthorCollection() → CommentAuthorCollection
CommentAuthorCollection() → CommentAuthorCollection
CommentAuthorCollection() → CommentAuthorCollection
CommentAuthorCollection()
init_internal(authors_part: Internal::pptx::CommentAuthorsPart, package: Internal::opc::OpcPackage)初始化此集合的内部 PPTX 持久层。将集合链接到其基于 XML 的 CommentAuthorsPart,以便从底层 XML 文档加载作者。
add_author(name: std::string, initials: std::string) → CommentAuthor添加一个具有给定姓名和缩写的新作者。
to_array() → std::vector<CommentAuthor*>返回所有作者的副本,作为一个非拥有指针的向量。
to_array() → std::vector<const CommentAuthor*>返回所有作者的副本,作为一个非拥有指针的向量。
find_by_name(name: std::string) → std::vector<CommentAuthor*>查找姓名匹配给定值的作者。
find_by_name_and_initials(name: std::string, initials: std::string) → std::vector<CommentAuthor*>查找姓名和缩写均匹配的作者。
remove_at(index: std::size_t)删除给定索引处的作者,先清除其评论。
remove(author: CommentAuthor)从集合中移除指定的作者。
clear()从集合中移除所有作者,先清除他们的评论。
size() → std::size_t返回作者的数量。
as_i_collection() → CommentAuthorCollection返回对该集合的引用,作为通用集合接口。
as_i_collection() → CommentAuthorCollection返回对此集合的引用,作为通用集合接口。
as_i_enumerable() → CommentAuthorCollection返回对此集合的引用,作为通用可枚举接口。
as_i_enumerable() → CommentAuthorCollection返回对此集合的引用,作为通用可枚举接口。
begin() → auto
end() → auto
begin() → auto
end() → auto

另请参阅

 中文