CommentCollection

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. Every read operation rebuilds the comment list from the package; no list-level caching is performed.

Properties

NameTypeAccessDescription
CountintReadGets the total number of comments in the collection
AsICollectionIList<IComment>ReadProvides the comments as an IList
AsIEnumerableIEnumerable<IComment>ReadProvides the comments as an IEnumerable

Methods

SignatureDescription
ToArray()Returns a sub‑array of comments from start index of given count
ToArray(start: int, count: int)
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

See Also