The Comment and CommentAuthor classes represent slide comments and their authors. They implement IComment and ICommentAuthor respectively.
Package: org.aspose.slides.foss
Comment
Constructor
| Signature | Description |
|---|
Comment(String text, ICommentAuthor author, ISlide slide, PointF position, LocalDateTime createdTime) | Create a new comment. |
Properties
| Property | Type | Access | Description |
|---|
getText() / setText(String) | String | Read/Write | Comment text. |
getAuthor() | ICommentAuthor | Read | The comment author. |
getSlide() | ISlide | Read | Slide this comment is on. |
getPosition() | PointF | Read | Position on the slide. |
getCreatedTime() | LocalDateTime | Read | Creation timestamp. |
getParentComment() | Optional<IComment> | Read | Parent comment for replies. |
setParentComment(IComment) | void | Write | Set parent comment. |
Methods
| Method | Returns | Description |
|---|
remove() | void | Remove this comment. |
CommentAuthor
Constructor
| Signature | Description |
|---|
CommentAuthor(String name, String initials, int id) | Create a new comment author. |
Properties
| Property | Type | Description |
|---|
getName() | String | Author name. |
getInitials() | String | Author initials. |
getId() | int | Author identifier. |
getComments() | ICommentCollection | Comments by this author. |
Usage Examples
Add a Comment to a Slide
See Also