com.spire.doc.collections
Class CommentsCollection

java.lang.Object
  extended by com.spire.doc.OwnerHolder
      extended by com.spire.doc.collections.CollectionEx
          extended by com.spire.doc.collections.CommentsCollection
All Implemented Interfaces:
java.lang.Iterable

public class CommentsCollection
extends CollectionEx

A collection of objects that represent the comments in the document.


Constructor Summary
CommentsCollection(Document doc)
          Initializes a new instance of the class.
 
Method Summary
 void clear()
          Remove all the Comment from the document.
 int counts()
          Counts this instance.
 Comment get(int index)
          Gets the comment at specified index.
 void remove(Comment comment)
          Removes the specified Comment.
 void removeAt(int index)
          Remove a Comment at specified index.
 
Methods inherited from class com.spire.doc.collections.CollectionEx
getCount, iterator
 
Methods inherited from class com.spire.doc.OwnerHolder
getDocument
 

Constructor Detail

CommentsCollection

public CommentsCollection(Document doc)
Initializes a new instance of the class.

Parameters:
doc -
Method Detail

get

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

Parameters:
index -
Returns:

counts

public int counts()
Counts this instance.

Returns:

removeAt

public void removeAt(int index)
Remove a Comment at specified index.

Parameters:
index -

clear

public void clear()
Remove all the Comment from the document.

Overrides:
clear in class CollectionEx

remove

public void remove(Comment comment)
Removes the specified Comment.

Parameters:
comment -