com.spire.presentation.collections
Class CommentList

java.lang.Object
  extended by com.spire.presentation.collections.CommentList
Direct Known Subclasses:
CommentCollection

public class CommentList
extends java.lang.Object

Represents a collection of comments of one author.


Constructor Summary
CommentList(CommentAuthor parent)
           
 
Method Summary
 Comment appendComment(ISlide slide, java.lang.String text, float x, float y)
          Adds a new comment added to a slide.
 Comment get(int index)
          Gets the element at the specified index.
 int getCount()
          Gets the number of elements actually contained in the collection.
 Presentation getPresentation()
          Gets parent PresentationPptx object for a collection of comments.
 Comment insertComment(ISlide slide, int Index, java.lang.String text, float x, float y)
          Adds a new comment added to a slide.
 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.
 Comment[] toArray()
          Gets a array of the commentlist.
 Comment[] toArray(int startIndex, int count)
          Gets a array of the commentlist.
 

Constructor Detail

CommentList

public CommentList(CommentAuthor parent)
Method Detail

getCount

public int getCount()
Gets the number of elements actually contained in the collection. Read-only .

Returns:

get

public Comment get(int index)
Gets the element at the specified index. Read-only .

Parameters:
index -
Returns:

appendComment

public Comment appendComment(ISlide slide,
                             java.lang.String text,
                             float x,
                             float y)
Adds a new comment added to a slide.

Parameters:
slide -
text -
x -
y -
Returns:
Throws:
PptEditException

insertComment

public Comment insertComment(ISlide slide,
                             int Index,
                             java.lang.String text,
                             float x,
                             float y)
Adds a new comment added to a slide.

Parameters:
slide -
Index -
text -
x -
y -
Returns:
Throws:
PptEditException

toArray

public Comment[] toArray()
Gets a array of the commentlist.

Returns:

toArray

public Comment[] toArray(int startIndex,
                         int count)
Gets a array of the commentlist.

Parameters:
startIndex -
count -
Returns:

removeAt

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

Parameters:
index -

remove

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

Parameters:
comment -

getPresentation

public Presentation getPresentation()
Gets parent PresentationPptx object for a collection of comments. Read-only .

Returns: