These classes manage slide-level comments and their authors. Access comment authors via Presentation.CommentAuthors and per-slide comments via Slide.GetSlideComments().
Package: Aspose.Slides.Foss (net9.0)
Comment
Properties
| Property | Type | Access | Description |
|---|
Text | string | Read | Comment text. |
CreatedTime | DateTime? | Read | When the comment was created. |
Slide | ISlide | Read | Slide the comment belongs to. |
Author | ICommentAuthor | Read | Author of the comment. |
Position | PointF | Read | Position on the slide. |
ParentComment | IComment? | Read | Parent comment for threaded replies. |
Methods
| Method | Description |
|---|
Remove() | Remove this comment. |
CommentAuthor
Properties
| Property | Type | Access | Description |
|---|
Name | string | Read | Author display name. |
Initials | string | Read | Author initials. |
Comments | ICommentCollection | Read | All comments by this author. |
Methods
| Method | Description |
|---|
Remove() | Remove this author and their comments. |
CommentAuthorCollection
Accessed via Presentation.CommentAuthors.
Properties
| Property | Type | Access | Description |
|---|
Count | int | Read | Number of authors. |
Methods
| Method | Returns | Description |
|---|
AddAuthor(string name, string initials) | ICommentAuthor | Add a new comment author. |
FindByName(string name) | ICommentAuthor[] | Find authors by name. |
FindByNameAndInitials(string name, string initials) | ICommentAuthor[] | Find by name and initials. |
RemoveAt(int index) | void | Remove the author at the specified index. |
Remove(ICommentAuthor author) | void | Remove a specific author. |
Clear() | void | Remove all authors. |
ToArray() | ICommentAuthor[] | Return all authors as an array. |
CommentCollection
Accessed via CommentAuthor.Comments.
Properties
| Property | Type | Access | Description |
|---|
Count | int | Read | Number of comments. |
Methods
| Method | Returns | Description |
|---|
AddComment(string text, ISlide slide, PointF position, DateTime creationTime) | IComment | Add a comment to a slide. |
InsertComment(int index, string text, ISlide slide, PointF position, DateTime creationTime) | IComment | Insert a comment at a specific index. |
FindCommentByIdx(int idx) | IComment | Find a comment by index. |
RemoveAt(int index) | void | Remove comment at index. |
Remove(IComment comment) | void | Remove a specific comment. |
Clear() | void | Remove all comments. |
ToArray() | IComment[] | Return all comments as an array. |
Usage Examples
Add a Comment
Read Comments
See Also