CommentAuthorCollection

CommentAuthorCollection class

Represents a collection of comment authors.

addAuthor

NameDescription
addAuthor (String, String)Add new author at the end of a collection.

Parameters:

NameTypeDescription
nameStringName of a new author.
initialsStringInitials of a new author.

Returns: CommentAuthor

Exception

ErrorCondition
PptxEditExceptionThrown if author with the same name and initials is already added.

clear

NameDescription
clear ()Removes all authors from a collection.

Returns: void


findByName

NameDescription
findByName (String)Find author in a collection by name.

Parameters:

NameTypeDescription
nameStringName of an author to find.

Returns: CommentAuthor


findByNameAndInitials

NameDescription
findByNameAndInitials (String, String)Find author in a collection by name and initials.

Parameters:

NameTypeDescription
nameStringName of an author to find.
initialsStringInitials of an author to find.

Returns: CommentAuthor


getSyncRoot

NameDescription
getSyncRoot ()Returns a synchronization root. Read-only Object.

Returns: Object


get_Item

NameDescription
get_Item (int)Gets the element at the specified index. Read-only ICommentAuthor.

Returns: CommentAuthor


isSynchronized

NameDescription
isSynchronized ()Returns a value indicating whether access to the collection is synchronized (thread-safe). Read-only boolean.

Returns: boolean


iterator

NameDescription
iterator ()Returns an enumerator that iterates through the collection.

Returns:


iteratorJava

NameDescription
iteratorJava ()Returns a java iterator for the entire collection.

Returns:


remove

NameDescription
remove (CommentAuthor)Removes the first occurrence of the specified author in a collection.

Parameters:

NameTypeDescription
authorCommentAuthorThe author to remove from a collection.

Returns: void

Exception

ErrorCondition
PptxEditExceptionThrown if author is already removed.

removeAt

NameDescription
removeAt (int)Removes the author at the specified index of the collection.

Parameters:

NameTypeDescription
indexintThe zero-based index of the element to remove.

Returns: void

Exception

ErrorCondition
PptxEditExceptionThrown if author is already removed.

size

NameDescription
size ()Gets the number of elements actually contained in the collection. Read-only int.

Returns: int


toArray

NameDescription
toArray ()Creates and returns an array with all authors.

Returns: CommentAuthor