com.aspose.slides
Class CommentAuthorCollection

java.lang.Object
  extended by com.aspose.slides.CommentAuthors
      extended by com.aspose.slides.CommentAuthorCollection
All Implemented Interfaces:
com.aspose.ms.System.Collections.ICollection<CommentAuthor>, com.aspose.ms.System.Collections.IEnumerable<CommentAuthor>, java.lang.Iterable<CommentAuthor>

public final class CommentAuthorCollection
extends CommentAuthors
implements com.aspose.ms.System.Collections.ICollection<CommentAuthor>

Represents a collection of comment authors.


Method Summary
 CommentAuthor addAuthor(java.lang.String name)
           Add new author at the end of a collection.
 void copyTo(com.aspose.ms.System.Array array, int index)
           Copies all elements from the collection to the specified array.
 CommentAuthor[] findByName(java.lang.String name)
           Find author in a collection by name.
 CommentAuthor get_Item(int index)
           Gets the element at the specified index.
 int getCount()
           Gets the number of elements actually contained in the collection.
 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.IEnumerator<CommentAuthor> iterator()
           Returns an enumerator for the entire collection.
 int size()
           
 CommentAuthor[] toArray()
           Creates and returns an array with all authors.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

copyTo

public void copyTo(com.aspose.ms.System.Array array,
                   int index)

Copies all elements from the collection to the specified array.

Specified by:
copyTo in interface com.aspose.ms.System.Collections.ICollection<CommentAuthor>
Parameters:
array - Target array.
index - Starting index in the target array.

isSynchronized

public boolean isSynchronized()

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

Specified by:
isSynchronized in interface com.aspose.ms.System.Collections.ICollection<CommentAuthor>

getSyncRoot

public java.lang.Object getSyncRoot()

Returns a synchronization root. Readonly object.

Specified by:
getSyncRoot in interface com.aspose.ms.System.Collections.ICollection<CommentAuthor>

size

public int size()
Specified by:
size in interface com.aspose.ms.System.Collections.ICollection<CommentAuthor>

getCount

public int getCount()
Description copied from class: CommentAuthors

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

Overrides:
getCount in class CommentAuthors

get_Item

public CommentAuthor get_Item(int index)
Description copied from class: CommentAuthors

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

Overrides:
get_Item in class CommentAuthors

addAuthor

public CommentAuthor addAuthor(java.lang.String name)
Description copied from class: CommentAuthors

Add new author at the end of a collection.

Overrides:
addAuthor in class CommentAuthors
Parameters:
name - Name of a new author.
Returns:

toArray

public CommentAuthor[] toArray()
Description copied from class: CommentAuthors

Creates and returns an array with all authors.

Overrides:
toArray in class CommentAuthors
Returns:
Array of CommentAuthor

findByName

public CommentAuthor[] findByName(java.lang.String name)
Description copied from class: CommentAuthors

Find author in a collection by name.

Overrides:
findByName in class CommentAuthors
Parameters:
name - Name of an author to find.
Returns:
Author or null.

iterator

public com.aspose.ms.System.Collections.IEnumerator<CommentAuthor> iterator()
Description copied from class: CommentAuthors

Returns an enumerator for the entire collection.

Specified by:
iterator in interface com.aspose.ms.System.Collections.IEnumerable<CommentAuthor>
Specified by:
iterator in interface java.lang.Iterable<CommentAuthor>
Overrides:
iterator in class CommentAuthors
Returns:
An IEnumerator for the entire collection.