CommentCollection
概述
CommentCollection 是 C++ 的 FOSS 中的 Aspose.Slides 类.
管理一个作者所写的评论.
本类提供了16种方法,用于在C++程序中与CommentCollection对象工作. 有的方法包括: CommentCollection, ICommentCollection, add_comment, as_i_collection, as_i_enumerable, clear, find_comment_by_idx, insert_comment, remove, remove_at, remove_comment, size,其他方法. 在安装了Aspose.Slides FOSS for C++ 包后,所有公众成员都可以访问任何C ++应用程序. 特性: CommentCollection, ICommentCollection.
属性
| 名称: | 类型 | Access | 描述情况 |
|---|---|---|---|
CommentCollection | CommentCollection | 阅读 | 获取注释集合。. |
ICommentCollection | ICommentCollection | 阅读 | 获取 i comment 集合。. |
方法
| Signature | 描述情况 |
|---|---|
CommentCollection() → CommentCollection | 构建由该作者拥有的收藏. |
ICommentCollection() → ICommentCollection | 属性为此集合提供 ICommentCollection 接口. |
ICommentCollection() → ICommentCollection | |
CommentCollection() | 构建由该作者拥有的收藏. |
add_comment(text: std::string, slide: Slide, position: Drawing::PointF, created_time: std::chrono::system_clock::time_point) → Comment | 添加一个新的评论并返回引用. |
insert_comment(index: std::size_t, text: std::string, slide: Slide, position: Drawing::PointF, created_time: std::chrono::system_clock::time_point) → Comment | 在给定的索引中插入一个评论,并返回它. |
remove_at(index: std::size_t) | 删除给出的索引上的评论. |
remove(comment: Comment) | 删除了给出的评论 (及其答案) 从集合中. |
clear() | 删除了所有评论. |
size() → std::size_t | 返回评论数量. |
to_array() → std::vector<Comment*> | 返回所有评论的非拥有指针向量. |
to_array(start: std::size_t, count: std::size_t) → std::vector<Comment*> | 返回所有评论的非拥有指针向量. |
find_comment_by_idx(idx: std::uint32_t) → Comment | 通过其独特的每作者索引找到评论,如果没有发现的话则为nullptr. |
as_i_collection() → ICommentCollection | 返回此集合的引用作为通用集接口. |
as_i_enumerable() → ICommentCollection | 返回一个参考这个集合作为通用可编数接口. |
remove_comment(comment: Comment) | 通过指针删除特定的评论 (内部使用Comment::remove). |