body-ag凯发旗舰厅



com.spire.doc
class body

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.documentcontainer
                      extended by com.spire.doc.body
all implemented interfaces:
ibody, icompositeobject, idocumentobject
direct known subclasses:
headerfooter, sdtcontent, tablecell

public class body
extends documentcontainer
implements ibody

method summary
 paragraph addparagraph()
          adds paragraph at end of section.
 table addtable()
          adds the table.
 table addtable(boolean showborder)
          adds the table.
 void ensureminimum()
          if the text body has no paragraphs, creates and appends one paragraph.
 documentobjectcollection getchildobjects()
          gets the child entities.
 documentobjecttype getdocumentobjecttype()
          gets the type of the document object.
 iparagraph getfirstparagraph()
          gets the first paragraph.
 formfieldcollection getformfields()
          gets the form fields.
 iparagraph getlastparagraph()
          gets the last paragraph.
 paragraphcollection getparagraphs()
          gets inner paragraphs
 tablecollection gettables()
          gets inner tables
 void hassdt(boolean value)
          sets has stucture document tag.
 void insertxhtml(java.lang.string html)
          inserts html at end of text body.
 void insertxhtml(java.lang.string html, int paragraphindex)
          inserts html.
 void insertxhtml(java.lang.string html, int paragraphindex, int paragraphitemindex)
          inserts html.
 boolean isvalidxhtml(java.lang.string html, xhtmlvalidationtype type)
          validates the xhtml.
 boolean isvalidxhtml(java.lang.string html, xhtmlvalidationtype type, java.lang.string[] exceptionmessage)
          validates the xhtml.
 
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
 
method detail

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

getparagraphs

public paragraphcollection getparagraphs()
gets inner paragraphs
specified by:
getparagraphs in interface ibody
returns:
paragraphcollection

gettables

public tablecollection gettables()
gets inner tables
specified by:
gettables in interface ibody
returns:
tablecollection

getformfields

public formfieldcollection getformfields()
gets the form fields.
specified by:
getformfields in interface ibody
returns:
the form fields.

getlastparagraph

public iparagraph getlastparagraph()
gets the last paragraph.
specified by:
getlastparagraph in interface ibody
returns:
the last paragraph.

getfirstparagraph

public iparagraph getfirstparagraph()
gets the first paragraph.
returns:
the last paragraph.

getchildobjects

public documentobjectcollection getchildobjects()
gets the child entities.
specified by:
getchildobjects in interface icompositeobject
specified by:
getchildobjects in class documentobject
returns:
the child entities.

hassdt

public void hassdt(boolean value)
sets has stucture document tag.
parameters:
value -

addparagraph

public paragraph addparagraph()
adds paragraph at end of section.
specified by:
addparagraph in interface ibody
returns:
a new paragraph

addtable

public table addtable()
adds the table.
specified by:
addtable in interface ibody
returns:
a table

addtable

public table addtable(boolean showborder)
adds the table.
parameters:
showborder - is show border
returns:
the table

insertxhtml

public void insertxhtml(java.lang.string html)
inserts html at end of text body.
specified by:
insertxhtml in interface ibody
parameters:
html - html

insertxhtml

public void insertxhtml(java.lang.string html,
                        int paragraphindex)
inserts html. inserting begins from paragraph specified by paragraphindex
specified by:
insertxhtml in interface ibody
parameters:
html - html
paragraphindex - paragraphindex

insertxhtml

public void insertxhtml(java.lang.string html,
                        int paragraphindex,
                        int paragraphitemindex)
inserts html. inserting begins from paragraph specified by paragraphindex, and paragraph item specified by paragraphitemindex
specified by:
insertxhtml in interface ibody
parameters:
html - the html string
paragraphindex - the pargraph index
paragraphitemindex - the pargraph item index

isvalidxhtml

public boolean isvalidxhtml(java.lang.string html,
                            xhtmlvalidationtype type)
validates the xhtml.
parameters:
html - the html.
type - the validation type.
returns:
if it is valid xhtml, set to true

isvalidxhtml

public boolean isvalidxhtml(java.lang.string html,
                            xhtmlvalidationtype type,
                            java.lang.string[] exceptionmessage)
validates the xhtml.
parameters:
html - the html
type - the validation type.
exceptionmessage - the exception message.
returns:
if it is valid xhtml, set to true

ensureminimum

public void ensureminimum()
if the text body has no paragraphs, creates and appends one paragraph.
specified by:
ensureminimum in interface ibody


网站地图