commentscollection-ag凯发旗舰厅
com.spire.doc.collections
class commentscollection
java.lang.object
com.spire.doc.ownerholder
com.spire.doc.collections.collectionex
com.spire.doc.collections.commentscollection
- all implemented interfaces:
- java.lang.iterable
public class commentscollection
- extends collectionex
a collection of comment
objects that
represent the comments in the document.
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. |
commentscollection
public commentscollection(document doc)
- initializes a new instance of the commentscollection class.
- parameters:
doc
- the doc.
get
public comment get(int index)
- gets the comment at specified index.
- parameters:
index
- indext
- returns:
- comment object
counts
public int counts()
- counts this instance.
- returns:
- int value
removeat
public void removeat(int index)
- remove a comment at specified index.
- parameters:
index
- 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
- comment object