com.aspose.slides
Class CommentExCollection

java.lang.Object
  extended by com.aspose.slides.CommentsEx
      extended by com.aspose.slides.CommentExCollection
All Implemented Interfaces:
com.aspose.ms.System.Collections.ICollection<CommentEx>, com.aspose.ms.System.Collections.IEnumerable<CommentEx>, java.lang.Iterable<CommentEx>

public final class CommentExCollection
extends CommentsEx
implements com.aspose.ms.System.Collections.ICollection<CommentEx>

Represents a collection of comments of one author.


Method Summary
 int addComment(java.lang.String text, SlideEx slide, java.awt.geom.Point2D.Float position, java.util.Date creationTime)
           
 void copyTo(com.aspose.ms.System.Array array, int index)
           Copies all elements from the collection to the specified array.
 CommentEx 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.
 void insertComment(int index, java.lang.String text, SlideEx slide, java.awt.geom.Point2D.Float position, java.util.Date creationTime)
           
 boolean isSynchronized()
           Returns a value indicating whether access to the collection is synchronized (thread-safe).
 com.aspose.ms.System.Collections.IEnumerator<CommentEx> iterator()
           Returns an enumerator for the entire collection.
 void remove(CommentEx 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()
           
 CommentEx[] toArray()
           Creates and returns an array with all comments.
 CommentEx[] toArray(int startIndex, int count)
           Creates and returns an array with all comments from the specified range.
 
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<CommentEx>
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<CommentEx>

getSyncRoot

public java.lang.Object getSyncRoot()

Returns a synchronization root. Readonly object.

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

size

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

getCount

public int getCount()
Description copied from class: CommentsEx

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

Overrides:
getCount in class CommentsEx

get_Item

public CommentEx get_Item(int index)
Description copied from class: CommentsEx

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

Overrides:
get_Item in class CommentsEx

addComment

public int addComment(java.lang.String text,
                      SlideEx slide,
                      java.awt.geom.Point2D.Float position,
                      java.util.Date creationTime)
Overrides:
addComment in class CommentsEx

insertComment

public void insertComment(int index,
                          java.lang.String text,
                          SlideEx slide,
                          java.awt.geom.Point2D.Float position,
                          java.util.Date creationTime)
Overrides:
insertComment in class CommentsEx

toArray

public CommentEx[] toArray()
Description copied from class: CommentsEx

Creates and returns an array with all comments.

Overrides:
toArray in class CommentsEx
Returns:
Array of CommentEx.

toArray

public CommentEx[] toArray(int startIndex,
                           int count)
Description copied from class: CommentsEx

Creates and returns an array with all comments from the specified range.

Overrides:
toArray in class CommentsEx
Parameters:
startIndex - An index of a first comment to return.
count - A number of comments to return.
Returns:
Array of CommentEx.

removeAt

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

Removes the element at the specified index in a collection.

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

remove

public void remove(CommentEx comment)
Description copied from class: CommentsEx

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

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

iterator

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

Returns an enumerator for the entire collection.

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