ICommentCollection

ICommentCollection — Aspose.Slides FOSS Java API Reference

ICommentCollection — Represents a collection of comments belonging to a single author.

Package: org.aspose.slides.foss


Methods

MethodReturnsDescription
addComment(String text, ISlide slide, PointF position, LocalDateTime createdTime)ICommentAdds a comment to the collection.
insertComment(int index, String text, ISlide slide, PointF position, LocalDateTime createdTime)ICommentInserts a comment at the given index.
removeAt(int index)voidRemoves the comment at the given index.
remove(IComment comment)voidRemoves the given comment (and its replies) from the collection.
clear()voidRemoves all comments from this collection.
get(int index)ICommentReturns the comment at the given index.
size()intReturns 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).

See Also