ICommentAuthorCollection

All Implemented Interfaces: com.aspose.slides.IGenericCollection

public interface ICommentAuthorCollection extends IGenericCollection<ICommentAuthor>

Represents a collection of comment authors.

Methods

MethodDescription
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.

get_Item(int index)

public abstract 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 abstract 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 abstract ICommentAuthor[] toArray()

Creates and returns an array with all authors.

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

findByName(String name)

public abstract 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 abstract 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 abstract 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 abstract 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 abstract void clear()

Removes all authors from a collection.