CommentsCollection module

class CommentsCollection.CommentsCollection

Bases: CollectionEx

A collection of Comment objects that represent the comments in the document.

Clear()

Removes all the comments from the document.

Counts() int

Counts the number of comments in this instance.

Returns:

The number of comments in this instance.

Remove(comment: Comment)

Removes the specified comment.

Parameters:

comment – The comment to remove.

RemoveAt(index: int)

Removes a comment at the specified index.

Parameters:

index – The index of the comment to remove.

get_Item(index: int) Comment

Gets the comment at the specified index.

Parameters:

index – The index of the comment.

Returns:

The comment at the specified index.