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.

This class declares 13 methods for CommentAuthorCollection objects in Java programs. Available methods include: addAuthor, asICollection, asIEnumerable, buildAuthor, clear, findByName, findByNameAndInitials, get, initInternal, remove, removeAt, size, and 1 additional methods. Public members are accessible to any Java application after installing the Aspose.Slides FOSS for Java package.

Methods

SignatureDescription
initInternal(authorsPart: CommentAuthorsPart, pkg: OpcPackage, presentation: Presentation)Initializes internal backing references that link this collection to the underlying OPC package data.
buildAuthor(data: AuthorData) → CommentAuthorBuilds a {@link CommentAuthor} from the given XML-backed {@link AuthorData}.
addAuthor(name: String, initials: String) → ICommentAuthorAdds 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<ICommentAuthor>Provides the authors as a List collection
asIEnumerable() → Iterable<ICommentAuthor>Returns an Iterable over the authors

See Also

 English