CommentAuthorCollection
Overview
CommentAuthorCollection is a class in Aspose.Slides FOSS for Java.
Inherits from: BaseCollection<ICommentAuthor>, ICommentAuthorCollection.
Represents a collection of comment authors in a presentation.
Methods
| Signature | Description |
|---|---|
initInternal(authorsPart: CommentAuthorsPart, pkg: OpcPackage, presentation: Presentation) | Initializes internal backing references that link this collection to the |
| underlying OPC package data. | |
buildAuthor(data: AuthorData) → CommentAuthor | Builds a {@link CommentAuthor} from the given XML-backed {@link AuthorData}. |
addAuthor(name: String, initials: String) → ICommentAuthor | Adds a new author with the specified name and initials and returns it |
toArray() → ICommentAuthor[] | Returns all authors as an array of ICommentAuthor |
findByName(name: String) → List<ICommentAuthor> | Returns a list of authors whose name matches the given string |
findByNameAndInitials(name: String, initials: String) → List<ICommentAuthor> | Returns authors matching both name and initials |
removeAt(index: int) | Removes the author at the specified index |
remove(author: ICommentAuthor) | Deletes the specified author from the collection |
clear() | Removes all authors from the collection |
get(index: int) → ICommentAuthor | {@inheritDoc} |
In XML-backed mode, delegates to {@link CommentAuthorsPart#getAuthors()} and hydrates the author at the given index. | | `size()` → `int` | {@inheritDoc}
In XML-backed mode, returns the count from {@link CommentAuthorsPart#getAuthors()}.
/ | | `asICollection()` → `List