ICommentAuthorCollection

All Implemented Interfaces: com.aspose.slides.IGenericCollection

public interface ICommentAuthorCollection extends IGenericCollection<ICommentAuthor>

Represents a collection of comment authors.

Methods

Method Description
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:

Parameter Type Description
index int

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:

Parameter Type Description
name java.lang.String Name of a new author.
initials java.lang.String Initials 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:

Parameter Type Description
name java.lang.String Name 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:

Parameter Type Description
name java.lang.String Name of an author to find.
initials java.lang.String Initials 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:

Parameter Type Description
index int The 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:

Parameter Type Description
author ICommentAuthor The author to remove from a collection.

clear()

public abstract void clear()

Removes all authors from a collection.