public final class CommentAuthorCollection extends DomObject<Presentation> implements ICommentAuthorCollection
Represents a collection of comment authors.
| Modifier and Type | Method and Description |
|---|---|
ICommentAuthor |
addAuthor(java.lang.String name,
java.lang.String initials)
Add new author at the end of a collection.
|
void |
clear()
Removes all authors from a collection.
|
void |
copyTo(com.aspose.ms.System.Array array,
int index)
Copies all elements from the collection to the specified array.
|
ICommentAuthor[] |
findByName(java.lang.String name)
Find author in a collection by name.
|
ICommentAuthor[] |
findByNameAndInitials(java.lang.String name,
java.lang.String initials)
Find author in a collection by name and initials.
|
ICommentAuthor |
get_Item(int index)
Gets the element at the specified index.
|
java.lang.Object |
getSyncRoot()
Returns a synchronization root.
|
boolean |
isSynchronized()
Returns a value indicating whether access to the collection is synchronized (thread-safe).
|
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<ICommentAuthor> |
iterator()
Returns an enumerator that iterates through the collection.
|
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<ICommentAuthor> |
iteratorJava()
Returns a java iterator for the entire collection.
|
void |
remove(ICommentAuthor author)
Removes the first occurrence of the specified author in a collection.
|
void |
removeAt(int index)
Removes the author at the specified index of the collection.
|
int |
size()
Gets the number of elements actually contained in the collection.
|
ICommentAuthor[] |
toArray()
Creates and returns an array with all authors.
|
getParent_Immediatepublic final int size()
Gets the number of elements actually contained in the collection. Read-only int.
size in interface com.aspose.ms.System.Collections.ICollection<ICommentAuthor>public final ICommentAuthor get_Item(int index)
Gets the element at the specified index.
Read-only ICommentAuthor.
get_Item in interface ICommentAuthorCollectionpublic final ICommentAuthor addAuthor(java.lang.String name, java.lang.String initials)
Add new author at the end of a collection.
addAuthor in interface ICommentAuthorCollectionname - Name of a new author.initials - Initials of a new author.ICommentAuthor object.PptxEditException - Thrown if author with the same name and initials is already added.public final ICommentAuthor[] toArray()
Creates and returns an array with all authors.
toArray in interface ICommentAuthorCollectionICommentAuthorpublic final ICommentAuthor[] findByName(java.lang.String name)
Find author in a collection by name.
findByName in interface ICommentAuthorCollectionname - Name of an author to find.public final ICommentAuthor[] findByNameAndInitials(java.lang.String name, java.lang.String initials)
Find author in a collection by name and initials.
findByNameAndInitials in interface ICommentAuthorCollectionname - Name of an author to find.initials - Initials of an author to find.public final void removeAt(int index)
Removes the author at the specified index of the collection.
removeAt in interface ICommentAuthorCollectionindex - The zero-based index of the element to remove.com.aspose.ms.System.ArgumentOutOfRangeException - Index is less than 0 or index is equal or greater than CountPptxEditException - Thrown if author is already removed.public final void remove(ICommentAuthor author)
Removes the first occurrence of the specified author in a collection.
remove in interface ICommentAuthorCollectionauthor - The author to remove from a collection.com.aspose.ms.System.ArgumentNullException - Author is nullPptxEditException - Thrown if author is already removed.public final void clear()
Removes all authors from a collection.
clear in interface ICommentAuthorCollectionpublic final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<ICommentAuthor> iterator()
Returns an enumerator that iterates through the collection.
iterator in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<ICommentAuthor>iterator in interface com.aspose.ms.System.Collections.IEnumerable<ICommentAuthor>iterator in interface java.lang.Iterable<ICommentAuthor>IGenericEnumerator that can be used to iterate through the collection.public final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<ICommentAuthor> iteratorJava()
Returns a java iterator for the entire collection.
iteratorJava in interface IGenericCollection<ICommentAuthor>Iterator for the entire collection.public final void copyTo(com.aspose.ms.System.Array array,
int index)
Copies all elements from the collection to the specified array.
copyTo in interface com.aspose.ms.System.Collections.ICollection<ICommentAuthor>array - Target array.index - Starting index in the target array.public final boolean isSynchronized()
Returns a value indicating whether access to the collection is synchronized (thread-safe). Read-only boolean.
isSynchronized in interface com.aspose.ms.System.Collections.ICollection<ICommentAuthor>public final java.lang.Object getSyncRoot()
Returns a synchronization root.
Read-only Object.
getSyncRoot in interface com.aspose.ms.System.Collections.ICollection<ICommentAuthor>Copyright © 2004-2025 Aspose Pty Ltd. All Rights Reserved.