ICommentCollection — Aspose.Slides FOSS Java API Reference
ICommentCollection — Represents a collection of comments belonging to a single author.
Package: org.aspose.slides.foss
Methods
| Method | Returns | Description |
|---|---|---|
addComment(String text, ISlide slide, PointF position, LocalDateTime createdTime) | IComment | Adds a comment to the collection. |
insertComment(int index, String text, ISlide slide, PointF position, LocalDateTime createdTime) | IComment | Inserts a comment at the given index. |
removeAt(int index) | void | Removes the comment at the given index. |
remove(IComment comment) | void | Removes the given comment (and its replies) from the collection. |
clear() | void | Removes all comments from this collection. |
get(int index) | IComment | Returns the comment at the given index. |
size() | int | Returns the number of comments. |
toArray() | IComment[] | Returns all comments as an array. |
toArray(int startIndex, int count) | IComment[] | Returns a subset of comments as an array. |
asICollection() | List<IComment> | Returns this collection as a list. |
asIEnumerable() | Iterable<IComment> | Returns this collection as an iterable. |
findCommentByIdx(int idx) | Optional<IComment> | Finds a comment by its unique index (per author). |