CommentCollection

CommentCollection

Overview

CommentCollection is a class in Aspose.Slides FOSS for Python. Inherits from: BaseCollection, ICommentCollection.

Represents a collection of comments of one author.

This class provides 7 methods for working with CommentCollection objects in Python programs. Available methods include: add_comment, clear, find_comment_by_idx, insert_comment, remove, remove_at, to_array. All public members are accessible to any Python application after installing the Aspose.Slides FOSS for Python package. Properties: as_i_collection, as_i_enumerable, length.

Properties

NameTypeAccessDescription
as_i_collectionlistReadGets the as i collection.
as_i_enumerableAnyReadGets the as i enumerable.
lengthintReadReturns the number of elements.

Methods

SignatureDescription
to_array()list['IComment']Returns a list of IComment objects representing each comment in the collection
add_comment(text, slide, position, creation_time)'IComment'Add a comment to the end of this author’s comment collection for the given slide.
insert_comment(index, text, slide, position, creation_time)'IComment'Insert a comment at the given position in this author’s comment list.
remove_at(index: int)Removes the comment located at the given index from the collection
remove(comment)Remove the given comment (and its replies) from the collection.
clear()Remove all comments by this author across all slides.
find_comment_by_idx(idx)Optional['IComment']Find a comment by its idx value (unique per author).

See Also