CommentAuthorsPart

General

CommentAuthorsPart és una classe en Aspose.Slides per a Python.

Gestiona la part XML dels autors de comentaris (ppt/commentAuthors.xml).

Mètodes

SignatureDescription
__init__(package: OpcPackage)
get_authors()List[AuthorData]Returns a list of AuthorData objects for all comment authors
find_author_by_id(author_id: int)Optional[AuthorData]Returns the AuthorData matching the given author_id or None
add_author(name: str, initials: str)AuthorDataAdd a new author and return its AuthorData.
remove_author(author_id: int)Deletes the author identified by author_id from the collection
clear()Removes all author entries from the comment authors part
next_comment_idx(author_id: int)intReturn the next globally-unique comment index.
save()Save the comment authors XML back to the package.
ensure_registered(package: OpcPackage)Ensure that commentAuthors.xml is registered in content types and
the presentation has a relationship to it. |
 Català