comment-ag凯发旗舰厅



com.spire.doc.fields
class comment

java.lang.object
  extended by com.spire.doc.ownerholder
      extended by com.spire.doc.documents.xml.documentserializable
          extended by com.spire.doc.documentobject
              extended by com.spire.doc.documentbase
                  extended by com.spire.doc.fields.paragraphbase
                      extended by com.spire.doc.fields.comment
all implemented interfaces:
irunattrsource, icompositeobject, idocumentobject, iparagraphbase

public class comment
extends paragraphbase
implements icompositeobject

represents a container for text of a comment.


constructor summary
comment(idocument doc)
          initializes a new instance of the comment class.
 
method summary
 void additem(iparagraphbase paraitem)
          adds the paragraph item to the commented items.
 void clear()
          clears the commented items.
 body getbody()
          gets comment body.
 comment getbyrepliedcomment()
          gets the comment of current comment replied.
 documentobjectcollection getchildobjects()
          gets the child document objects.
 commentmark getcommentmarkend()
          gets the ending mark of the comment.
 commentmark getcommentmarkstart()
          gets the begining mark of the comment.
 documentobjecttype getdocumentobjecttype()
          gets the type of the document object.
 commentformat getformat()
          gets the format.
 paragraphitemcollection getitems()
          gets the range of commented items.
 boolean getmarkdone()
          gets a value indicating whether done.
 commentscollection getreplycommentitems()
          gets the range of commented items.
 void markcommentdone(boolean done)
          marks the comment done.
 void replace(java.lang.string text)
          replace commented items with matchstring text.
 void replace(textbodypart textbodypart)
          replaces the commented items with specified textbodypart.
 void replytocomment(comment replycomment)
          replies to comment.
 
methods inherited from class com.spire.doc.fields.paragraphbase
applycharacterformat, applystyle, getancestor, getcharacterformat, getownerparagraph, getstylename, isdeleterevision, isinsertrevision
 
methods inherited from class com.spire.doc.documentobject
deepclone, getfirstchild, getlastchild, getnextsibling, getowner, getprevioussibling, iscomposite, tostring
 
methods inherited from class com.spire.doc.ownerholder
getdocument
 
methods inherited from interface com.spire.doc.interfaces.idocumentobject
deepclone, getdocument, getnextsibling, getowner, getprevioussibling, iscomposite
 
methods inherited from interface com.spire.doc.documents.irunattrsource
clearrunattrs, fetchinheritedrunattr, getdirectrunattr, getdirectrunattrbyindex, getdirectrunattrscount, setrunattr
 
constructor detail

comment

public comment(idocument doc)
initializes a new instance of the comment class.
parameters:
doc - the doc.
method detail

getchildobjects

public documentobjectcollection getchildobjects()
gets the child document objects.
specified by:
getchildobjects in interface icompositeobject
overrides:
getchildobjects in class paragraphbase
returns:
the child entities.

getdocumentobjecttype

public documentobjecttype getdocumentobjecttype()
gets the type of the document object.
specified by:
getdocumentobjecttype in interface idocumentobject
specified by:
getdocumentobjecttype in class documentobject
returns:
the type of the document object.

getbody

public body getbody()
gets comment body.
returns:
the text body.

getformat

public commentformat getformat()
gets the format.
returns:
the format.

getitems

public paragraphitemcollection getitems()
gets the range of commented items.
returns:
the commented range.

getreplycommentitems

public commentscollection getreplycommentitems()
gets the range of commented items.
returns:
the reply commented range.

getbyrepliedcomment

public comment getbyrepliedcomment()
gets the comment of current comment replied.
returns:
comment of by reply.

getmarkdone

public boolean getmarkdone()
gets a value indicating whether done.
returns:
boolean

getcommentmarkstart

public commentmark getcommentmarkstart()
gets the begining mark of the comment.
returns:
the commentmark of start.

getcommentmarkend

public commentmark getcommentmarkend()
gets the ending mark of the comment.
returns:
the commentmark of end.

clear

public void clear()
clears the commented items.

replace

public void replace(java.lang.string text)
replace commented items with matchstring text.
parameters:
text - the text.

replace

public void replace(textbodypart textbodypart)
replaces the commented items with specified textbodypart.
parameters:
textbodypart - the text body part.

additem

public void additem(iparagraphbase paraitem)
adds the paragraph item to the commented items.
parameters:
paraitem - the paragraph item.

replytocomment

public void replytocomment(comment replycomment)
replies to comment.
parameters:
replycomment - the reply comment.

markcommentdone

public void markcommentdone(boolean done)
marks the comment done.
parameters:
done - the done.


网站地图