CommentCollection
Overview
CommentCollection is a class in Aspose.Slides FOSS for .NET.
Inherits from: ICommentCollection.
Represents a collection of comments authored by a single author across all slides in a presentation.
This class provides 8 methods for working with CommentCollection objects in .NET programs.
Available methods include: AddComment, Clear, FindCommentByIdx, InsertComment, Remove, RemoveAt, ToArray.
All public members are accessible to any .NET application after installing the Aspose.Slides FOSS for .NET package.
Properties: AsICollection, AsIEnumerable, Count.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
Count | int | Read | Gets the number of comments in this collection. |
AsICollection | IList<IComment> | Read | Gets the as i collection. |
AsIEnumerable | IEnumerable<IComment> | Read | Gets the as i enumerable. |
Methods
| Signature | Description |
|---|---|
ToArray() | Returns a sub‑array of comments from start index of given count |
ToArray(start: int, count: int) | Calls ToArray(start, count) on this CommentCollection instance. |
AddComment(text: string, slide: ISlide, position: PointF, creationTime: DateTime) | Creates and adds a comment with text, slide, position and creation time |
InsertComment(index: int, text: string, slide: ISlide, position: PointF, creationTime: DateTime) | Inserts a new comment at the specified index with given details |
RemoveAt(index: int) | Removes the comment located at the provided index |
Remove(comment: IComment) | Deletes the specified IComment instance from the collection |
Clear() | Removes all comments from the collection |
FindCommentByIdx(idx: int) | Retrieves the comment that matches the given index identifier |