com.aspose.slides
Class Comments

java.lang.Object
  extended by com.aspose.slides.Comments

public class Comments
extends java.lang.Object

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)
          Add new comment to a slide.
 void clear()
          Removes all comments from a slide.
 Comment get(int index)
          Returns the slide comment at the specified index.
 java.util.Iterator iterator()
          Returns an iterator for the entire collection.
 void remove(Comment comment)
          Removes the first occurrence of the specified comment in a collection.
 void remove(int index)
          Removes the element at the specified index in a collection.
 int size()
          Returns the number of slide comments actually contained in the collection.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

size

public int size()
Returns the number of slide comments actually contained in the collection.


get

public Comment get(int index)
Returns the slide comment at the specified index.


addComment

public Comment addComment(CommentAuthor author,
                          java.lang.String initials,
                          java.lang.String text,
                          java.util.Date time,
                          java.awt.Point anchor)
Add new comment to a slide.

Parameters:
author - Author who created the slide comment.
initials - Initials of an author who created the slide comment.
text - Text of the slide comment.
time - Date and time of the slide comment creation.
anchor - Point on a slide where comment should be placed.
Returns:
Created slide comment.

remove

public void remove(int index)
Removes the element at the specified index in a collection.


remove

public void remove(Comment comment)
Removes the first occurrence of the specified comment in a collection.


clear

public void clear()
Removes all comments from a slide.


iterator

public java.util.Iterator iterator()
Returns an iterator for the entire collection.