CommentAuthorCollection

Inheritance: java.lang.Object, com.aspose.slides.DomObject

All Implemented Interfaces: com.aspose.slides.ICommentAuthorCollection

public final class CommentAuthorCollection extends DomObject<Presentation> implements ICommentAuthorCollection

Represents a collection of comment authors.

Methods

MethodDescription
size()Gets the number of elements actually contained in the collection.
get_Item(int index)Gets the element at the specified index.
addAuthor(String name, String initials)Add new author at the end of a collection.
toArray()Creates and returns an array with all authors.
findByName(String name)Find author in a collection by name.
findByNameAndInitials(String name, String initials)Find author in a collection by name and initials.
removeAt(int index)Removes the author at the specified index of the collection.
remove(ICommentAuthor author)Removes the first occurrence of the specified author in a collection.
clear()Removes all authors from a collection.
iterator()Returns an enumerator that iterates through the collection.
iteratorJava()Returns a java iterator for the entire collection.
copyTo(System.Array array, int index)Copies all elements from the collection to the specified array.
isSynchronized()Returns a value indicating whether access to the collection is synchronized (thread-safe).
getSyncRoot()Returns a synchronization root.

size()

public final int size()

Gets the number of elements actually contained in the collection. Read-only int.

Returns: int

get_Item(int index)

public final ICommentAuthor get_Item(int index)

Gets the element at the specified index. Read-only ICommentAuthor.

Parameters:

ParameterTypeDescription
indexint

Returns: ICommentAuthor

addAuthor(String name, String initials)

public final ICommentAuthor addAuthor(String name, String initials)

Add new author at the end of a collection.

Parameters:

ParameterTypeDescription
namejava.lang.StringName of a new author.
initialsjava.lang.StringInitials of a new author.

Returns: ICommentAuthor - New ICommentAuthor object.

toArray()

public final ICommentAuthor[] toArray()

Creates and returns an array with all authors.

Returns: com.aspose.slides.ICommentAuthor[] - Array of ICommentAuthor

findByName(String name)

public final ICommentAuthor[] findByName(String name)

Find author in a collection by name.

Parameters:

ParameterTypeDescription
namejava.lang.StringName of an author to find.

Returns: com.aspose.slides.ICommentAuthor[] - Author or null.

findByNameAndInitials(String name, String initials)

public final ICommentAuthor[] findByNameAndInitials(String name, String initials)

Find author in a collection by name and initials.

Parameters:

ParameterTypeDescription
namejava.lang.StringName of an author to find.
initialsjava.lang.StringInitials of an author to find.

Returns: com.aspose.slides.ICommentAuthor[] - Author or null.

removeAt(int index)

public final void removeAt(int index)

Removes the author at the specified index of the collection.

Parameters:

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

remove(ICommentAuthor author)

public final void remove(ICommentAuthor author)

Removes the first occurrence of the specified author in a collection.

Parameters:

ParameterTypeDescription
authorICommentAuthorThe author to remove from a collection.

clear()

public final void clear()

Removes all authors from a collection.

iterator()

public final System.Collections.Generic.IGenericEnumerator<ICommentAuthor> iterator()

Returns an enumerator that iterates through the collection.

Returns: com.aspose.ms.System.Collections.Generic.IGenericEnumerator<com.aspose.slides.ICommentAuthor> - A IGenericEnumerator that can be used to iterate through the collection.

iteratorJava()

public final System.Collections.Generic.IGenericEnumerator<ICommentAuthor> iteratorJava()

Returns a java iterator for the entire collection.

Returns: com.aspose.ms.System.Collections.Generic.IGenericEnumerator<com.aspose.slides.ICommentAuthor> - An java.util.Iterator for the entire collection.

copyTo(System.Array array, int index)

public final void copyTo(System.Array array, int index)

Copies all elements from the collection to the specified array.

Parameters:

ParameterTypeDescription
arraycom.aspose.ms.System.ArrayTarget array.
indexintStarting index in the target array.

isSynchronized()

public final boolean isSynchronized()

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

Returns: boolean

getSyncRoot()

public final Object getSyncRoot()

Returns a synchronization root. Read-only Object.

Returns: java.lang.Object