CommentAuthorCollection
Overview
CommentAuthorCollection is a class in Aspose.Slides FOSS for Python.
Inherits from: BaseCollection, ICommentAuthorCollection.
Represents a collection of comment authors.
This class provides 7 methods for working with CommentAuthorCollection objects in Python programs.
Available methods include: add_author, clear, find_by_name, find_by_name_and_initials, 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
| Name | Type | Access | Description |
|---|---|---|---|
as_i_collection | list | Read | Gets the as i collection. |
as_i_enumerable | Any | Read | Gets the as i enumerable. |
length | int | Read | Returns the number of elements. |
Methods
| Signature | Description |
|---|---|
add_author(name: str, initials: str) → 'ICommentAuthor' | Add a new author at the end of the collection. |
to_array() → List['ICommentAuthor'] | Returns all comment authors as a list |
find_by_name(name: str) → List['ICommentAuthor'] | Returns a list of authors whose name matches the given string |
find_by_name_and_initials(name: str, initials: str) → List['ICommentAuthor'] | Returns authors matching both name and initials |
remove_at(index: int) | Removes the author at the specified zero‑based index |
remove(author: 'ICommentAuthor') | Deletes the specified author from the collection |
clear() | Removes all authors from the collection |