CommentCollection
Overview
CommentCollection is a class in Aspose.Slides FOSS for C++.
Manages a collection of comments belonging to a single author.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
CommentCollection | CommentCollection | Read | Property provides access to the underlying comment collection instance |
ICommentCollection | ICommentCollection | Read | Property provides the ICommentCollection interface for this collection |
Methods
| Signature | Description |
|---|---|
CommentCollection() → CommentCollection | Constructs a collection owned by the given author. |
ICommentCollection() → ICommentCollection | Property provides the ICommentCollection interface for this collection |
ICommentCollection() → ICommentCollection | |
remove_at(index: std::size_t) | Removes the comment at the given index. |
remove(comment: Comment) | Removes the given comment (and its replies) from the collection. |
clear() | Removes all comments from this collection. |
size() → std::size_t | Returns the number of comments. |
to_array() → std::vector<Comment*> | Returns a vector of non-owning pointers to all comments. |
to_array(start: std::size_t, count: std::size_t) → std::vector<Comment*> | Returns a vector of non-owning pointers to all comments. |
remove_comment(comment: Comment) | Removes a specific comment by pointer (used internally by Comment::remove). |