CommentAuthorCollection
Overview
CommentAuthorCollection is a class in Aspose.Slides FOSS for Python.
Inherits from: BaseCollection, ICommentAuthorCollection.
Represents a collection of comment authors.
This class declares 16 methods for CommentAuthorCollection objects in Python programs.
Available methods include: __contains__, __getitem__, __iter__, __len__, add_author, clear, find_by_name, find_by_name_and_initials, remove, remove_at, to_array.
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 |
__getitem__(index: int) → 'CommentAuthor' | Calls getitem(index) on this CommentAuthorCollection instance. |
__len__() → int | Calls len on this CommentAuthorCollection instance. |
__iter__() | Calls iter on this CommentAuthorCollection instance. |
__contains__(item) → bool | Calls contains(item) on this CommentAuthorCollection instance. |
add_author(name, initials) → ICommentAuthor | Adds a new comment author with the given name and initials and returns the author object |
find_by_name(name) → list[ICommentAuthor] | Calls find_by_name(name) on this CommentAuthorCollection instance. |
find_by_name_and_initials(name, initials) → list[ICommentAuthor] | Calls find_by_name_and_initials(name, initials) on this CommentAuthorCollection instance. |
remove_at(index) | Calls remove_at(index) on this CommentAuthorCollection instance. |
remove(author) | Calls remove(author) on this CommentAuthorCollection instance. |