ibody-ag凯发旗舰厅



com.spire.doc.interfaces
interface ibody

all superinterfaces:
icompositeobject, idocumentobject
all known implementing classes:
body, headerfooter, sdtcontent, structuredocumenttagcell, tablecell

public interface ibody
extends icompositeobject

interface publish text body functionality


method summary
 paragraph addparagraph()
          adds paragraph at the end of section.
 table addtable()
          adds the table.
 void ensureminimum()
          if the text body has no paragraphs, creates and appends one paragraph.
 formfieldcollection getformfields()
          gets the form fields.
 iparagraph getlastparagraph()
          gets the last paragraph.
 paragraphcollection getparagraphs()
          gets inner paragraphs.
 tablecollection gettables()
          gets inner tables
 void insertxhtml(java.lang.string html)
          inserts html at end of text body.
 void insertxhtml(java.lang.string html, int paragraphindex)
          inserts html begins from paragraph specified by paragraphindex.
 void insertxhtml(java.lang.string html, int paragraphindex, int paragraphitemindex)
          inserts html beginning from paragraph specified by paragraphindex, and after paragraph item specified by paragraphitemindex.
 
methods inherited from interface com.spire.doc.interfaces.icompositeobject
getchildobjects
 
methods inherited from interface com.spire.doc.interfaces.idocumentobject
deepclone, getdocument, getdocumentobjecttype, getnextsibling, getowner, getprevioussibling, iscomposite
 
method detail

gettables

tablecollection gettables()
gets inner tables
returns:
tablecollection

getparagraphs

paragraphcollection getparagraphs()
gets inner paragraphs.
returns:
paragraphcollection

getformfields

formfieldcollection getformfields()
gets the form fields.
returns:
the form fields.

getlastparagraph

iparagraph getlastparagraph()
gets the last paragraph.
returns:
the last paragraph.

addparagraph

paragraph addparagraph()
adds paragraph at the end of section.
returns:
paragraph

addtable

table addtable()
adds the table.
returns:
table

insertxhtml

void insertxhtml(java.lang.string html)
inserts html at end of text body.
parameters:
html - html

insertxhtml

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

insertxhtml

void insertxhtml(java.lang.string html,
                 int paragraphindex,
                 int paragraphitemindex)
inserts html beginning from paragraph specified by paragraphindex, and after paragraph item specified by paragraphitemindex.
parameters:
html - html
paragraphindex - paragraphindex
paragraphitemindex - paragraphitemindex

ensureminimum

void ensureminimum()
if the text body has no paragraphs, creates and appends one paragraph.


网站地图