CommentCollection
Vue de l’ensemble
‘CommentCollection’ est une classe dans Aspose.Slides FOSS pour C++.
Gère une collection de commentaires appartenant à un seul auteur.
Cette classe fournit 16 méthodes pour travailler avec les objets CommentCollection dans des programmes C++. Les méthodologies disponibles comprennent: ‘CommentColection’, ‘IComment Collection’, add_comment', ‘as_i_collection’, 'as _i _enumerable, ‘clear , 'find_ comment_by_idx,, ‘insert_ comment 'remove remover_at., ’ remove_commment et 1 méthode supplémentaire. Tous les membres publics sont accessibles à toute application C ++ après l'installation de l’Aspose.Slides FOSS pour le package C+. Propriétés : 'CommentCollections ; ‘ICMM Collection`.
Propriétés
| Name | Type | Access | Description |
|---|---|---|---|
CommentCollection | CommentCollection | Read | Gets the comment collection. |
ICommentCollection | ICommentCollection | Read | Gets the i comment collection. |
méthodes
| Signature | Description |
|---|---|
CommentCollection() → CommentCollection | Constructs a collection owned by the given author. |
ICommentCollection() → ICommentCollection | Property provides the ICommentCollection interface for this collection |
ICommentCollection() → ICommentCollection | |
CommentCollection() | Constructs a collection owned by the given author. |
add_comment(text: std::string, slide: Slide, position: Drawing::PointF, created_time: std::chrono::system_clock::time_point) → Comment | Adds a new comment and returns a reference to it. |
insert_comment(index: std::size_t, text: std::string, slide: Slide, position: Drawing::PointF, created_time: std::chrono::system_clock::time_point) → Comment | Inserts a comment at the given index and returns a reference to it. |
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. |
find_comment_by_idx(idx: std::uint32_t) → Comment | Finds a comment by its unique per-author index, or nullptr if not found. |
as_i_collection() → ICommentCollection | Returns a reference to this collection as a generic collection interface. |
as_i_enumerable() → ICommentCollection | Returns a reference to this collection as a generic enumerable interface. |
remove_comment(comment: Comment) | Removes a specific comment by pointer (used internally by Comment::remove). |
Voir aussi
- Aspose.Slides - référence API d’entreprise