CommentCollection

CommentCollection — Aspose.Slides FOSS Java API Reference

CommentCollection — Represents a collection of comments of one author. Inherits from: ICommentCollection.

Package: org.aspose.slides.foss


Properties

PropertyTypeAccessDescription
authorObjICommentAuthorRead/Write
allCommentsPartsList<CommentsPartEntry>Read/Write

Methods

MethodReturnsDescription
initInternal(AuthorData authorData, CommentAuthorsPart authorsPart, OpcPackage pkg, Presentation presentation)voidInitializes this collection with package-level backing data.
resolveSlide(String partName)ISlideReturns the ISlide whose part name matches the given part name, or null.
getAuthorObj()ICommentAuthorResolves the owning ICommentAuthor object from the backing author data.
getAllCommentsParts()List<CommentsPartEntry>Returns all CommentsPart instances across all slides that contain comments by this author.
getOrCreateCommentsPart(String slidePartName)CommentsPartGets or creates the CommentsPart for the given slide part name.
buildComment(CommentData data, CommentsPart cp, ISlide slideObj)CommentBuilds a Comment from raw comment data, a comments part, and an optional slide.
collectMyComments()List<MyCommentEntry>Collects all comments by this author across all slides in the package.
addComment(String text, ISlide slide, PointF position, LocalDateTime createdTime)IComment
insertComment(int index, String text, ISlide slide, PointF position, LocalDateTime createdTime)IComment
removeAt(int index)void
remove(IComment comment)void
clear()void
get(int index)IComment
size()int
toArray()IComment[]
toArray(int startIndex, int count)IComment[]
asICollection()List<IComment>
asIEnumerable()Iterable<IComment>
findCommentByIdx(int idx)Optional<IComment>

See Also