commentscollection-ag凯发旗舰厅



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 comment objects that represent the comments in the document.


constructor summary
commentscollection(document doc)
          initializes a new instance of the commentscollection 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 commentscollection class.
parameters:
doc - the doc.
method detail

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


网站地图