Comment

Overview

Comment is a class in Aspose.Slides FOSS for Java. Inherits from: IComment.

Represents a comment on a presentation slide.

Properties

NameTypeAccessDescription
textStringReadProperty holds the comment’s textual content
authorICommentAuthorReadProperty provides access to the comment’s author
slideISlideReadProperty provides the slide that contains the comment
positionPointFReadProperty gives the comment’s coordinates on the slide
createdTimeLocalDateTimeReadProperty stores the timestamp when the comment was created
parentCommentOptional<IComment>ReadProperty holds an Optional reference to the parent comment, if any

Methods

SignatureDescription
Comment(text: String, author: ICommentAuthor, slide: ISlide, position: PointF, createdTime: LocalDateTime)Creates a new comment.
getText()StringReturns the comment’s text content
setText(value: String)Updates the comment’s text to the provided value
getAuthor()ICommentAuthorReturns the ICommentAuthor associated with the comment
getSlide()ISlideReturns the ISlide on which the comment is placed
getPosition()PointFReturns the PointF indicating the comment’s location on the slide
getCreatedTime()LocalDateTimeReturns the LocalDateTime when the comment was created
getParentComment()Optional<IComment>Returns an Optional containing the parent comment if this comment is a reply
setParentComment(parent: IComment)Assigns the given comment as the parent of this comment
remove()Deletes the comment from its slide and any comment hierarchy

See Also