Comment
Overview
Comment is a class in Aspose.Slides FOSS for Java.
Inherits from: IComment.
Represents a comment on a presentation slide.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
text | String | Read | Property holds the comment’s textual content |
author | ICommentAuthor | Read | Property provides access to the comment’s author |
slide | ISlide | Read | Property provides the slide that contains the comment |
position | PointF | Read | Property gives the comment’s coordinates on the slide |
createdTime | LocalDateTime | Read | Property stores the timestamp when the comment was created |
parentComment | Optional<IComment> | Read | Property holds an Optional reference to the parent comment, if any |
Methods
| Signature | Description |
|---|---|
Comment(text: String, author: ICommentAuthor, slide: ISlide, position: PointF, createdTime: LocalDateTime) | Creates a new comment. |
getText() → String | Returns the comment’s text content |
setText(value: String) | Updates the comment’s text to the provided value |
getAuthor() → ICommentAuthor | Returns the ICommentAuthor associated with the comment |
getSlide() → ISlide | Returns the ISlide on which the comment is placed |
getPosition() → PointF | Returns the PointF indicating the comment’s location on the slide |
getCreatedTime() → LocalDateTime | Returns 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 |