com.aspose.slides
Class CommentCollection

java.lang.Object
  extended by com.aspose.slides.Comments
      extended by com.aspose.slides.CommentCollection
All Implemented Interfaces:
com.aspose.ms.System.Collections.ICollection<Comment>, com.aspose.ms.System.Collections.IEnumerable<Comment>, java.lang.Iterable<Comment>

public final class CommentCollection
extends Comments
implements com.aspose.ms.System.Collections.ICollection<Comment>

Represents a collection of slide comments.


Method Summary
 Comment addComment(CommentAuthor author, java.lang.String initials, java.lang.String text, java.util.Date time, java.awt.Point anchor)
           
 void clear()
           Removes all coomments from the slide.
 void copyTo(com.aspose.ms.System.Array array, int index)
           Copies all elements from the collection to the specified array.
 Comment get_Item(int index)
           Returns the slide comment at the specified index.
 int getCount()
           Returns the number of slide comments 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<Comment> iterator()
           Returns an enumerator for the entire collection.
 void remove(Comment comment)
           Removes the first occurrence of the specified comment in a collection.
 void removeAt(int index)
           Removes the element at the specified index in a collection.
 int size()
           
 
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<Comment>
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<Comment>

getSyncRoot

public java.lang.Object getSyncRoot()

Returns a synchronization root. Readonly object.

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

size

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

getCount

public int getCount()
Description copied from class: Comments

Returns the number of slide comments actually contained in the collection. Read-only int.

Overrides:
getCount in class Comments

get_Item

public Comment get_Item(int index)
Description copied from class: Comments

Returns the slide comment at the specified index.

Overrides:
get_Item in class Comments

addComment

public Comment addComment(CommentAuthor author,
                          java.lang.String initials,
                          java.lang.String text,
                          java.util.Date time,
                          java.awt.Point anchor)
Overrides:
addComment in class Comments

removeAt

public void removeAt(int index)
Description copied from class: Comments

Removes the element at the specified index in a collection.

Overrides:
removeAt in class Comments
Parameters:
index - The zero-based index of the element to remove.

remove

public void remove(Comment comment)
Description copied from class: Comments

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

Overrides:
remove in class Comments
Parameters:
comment - The comment to remove from a collection.

clear

public void clear()
Description copied from class: Comments

Removes all coomments from the slide.

Overrides:
clear in class Comments

iterator

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

Returns an enumerator for the entire collection.

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