iparagraph-ag凯发旗舰厅



com.spire.doc.interfaces
interface iparagraph

all superinterfaces:
ibodyregion, idocumentobject, istyleholder
all known implementing classes:
paragraph

public interface iparagraph
extends ibodyregion, istyleholder

represents a paragraph inside a section.


method summary
 bookmarkend appendbookmarkend(java.lang.string name)
          appends end of the bookmark with specified name into paragraph.
 bookmarkstart appendbookmarkstart(java.lang.string name)
          appends start of the bookmark with specified name into paragraph.
 break appendbreak(breaktype breaktype)
          appends break to end of paragraph.
 checkboxformfield appendcheckbox()
          appends the check box.
 checkboxformfield appendcheckbox(java.lang.string checkboxname, boolean defaultcheckboxvalue)
          appends the check box.
 comment appendcomment(java.lang.string text)
          appends the comment.
 dropdownformfield appenddropdownformfield()
          appends the drop down form field.
 dropdownformfield appenddropdownformfield(java.lang.string dropdropdownname)
          appends the drop down form field.
 field appendfield(java.lang.string fieldname, fieldtype fieldtype)
          appends field to the end of paragraph
 footnote appendfootnote(footnotetype type)
          appends the footnote.
 void appendhtml(java.lang.string html)
          appends the html.
 field appendhyperlink(java.lang.string link, docpicture picture, hyperlinktype type)
          appends the hyperlink.
 field appendhyperlink(java.lang.string link, java.lang.string text, hyperlinktype type)
          appends the hyperlink.
 docoleobject appendoleobject(byte[] olebytes, docpicture olepicture, olelinktype olelinktype)
          appends the ole object.
 docoleobject appendoleobject(byte[] olebytes, docpicture olepicture, oleobjecttype type)
          appends the ole object.
 docoleobject appendoleobject(byte[] olebytes, docpicture olepicture, java.lang.string fileextension)
          appends the openpackage ole object (ole object without specified type).
 docoleobject appendoleobject(java.io.inputstream stream, docpicture pic, olelinktype olelinktype)
          appends the ole object into paragraph.
 docoleobject appendoleobject(java.io.inputstream olestream, docpicture olepicture, oleobjecttype type)
          appends the ole object.
 docoleobject appendoleobject(java.io.inputstream olestream, docpicture olepicture, java.lang.string fileextension)
          appends the openpackage ole object (ole object without specified type).
 docoleobject appendoleobject(java.lang.string pathtofile, docpicture olepicture)
          appends the ole object.
 docoleobject appendoleobject(java.lang.string pathtofile, docpicture olepicture, oleobjecttype type)
          appends the ole object.
 docpicture appendpicture(byte[] imagebytes)
          appends picture to the end of paragraph.
 docpicture appendpicture(java.io.inputstream inputstream)
          appends picture to the end of paragraph.
 docpicture appendpicture(java.lang.string filepath)
          appends picture to the end of paragraph.
 symbol appendsymbol(byte charactercode)
          appends symbol to the end of paragraph.
 textrange appendtext(java.lang.string text)
          appends text to the end of paragraph.
 textbox appendtextbox(float width, float height)
          appends textbox to the end of the paragraph
 textformfield appendtextformfield(java.lang.string defaulttext)
          appends the text form field.
 textformfield appendtextformfield(java.lang.string formfieldname, java.lang.string defaulttext)
          appends the text form field.
 tableofcontent appendtoc(int lowerheadinglevel, int upperheadinglevel)
          appends the toc.
 paragraphbase get(int index)
          gets the paragraphbase at the specified index.
 characterformat getbreakcharacterformat()
          gets the character format for the break symbol.
 paragraphformat getformat()
          gets the paragraph format.
 paragraphitemcollection getitems()
          gets the paragraph items.
 listformat getlistformat()
          gets list formatting for the paragraph.
 paragraphstyle getstyle()
          gets related style.
 java.lang.string gettext()
          returns paragraph text.
 boolean isendofdocument()
          gets a value indicating whether this paragraph is end of document.
 boolean isendofsection()
          gets a value indicating whether this paragraph is end of section.
 boolean isincell()
          gets a value indicating whether this paragraph is in cell.
 void removeabsposition()
          removes the absolute position data.
 int replace(java.lang.string given, textselection textselection, boolean casesensitive, boolean wholeword)
          replaces all entries of matchstring string with textrangesholder, taking into consideration casesensitive and wholeword options.
 void settext(java.lang.string value)
          sets paragraph text.
 
methods inherited from interface com.spire.doc.documents.ibodyregion
replace, replace, replace
 
methods inherited from interface com.spire.doc.interfaces.idocumentobject
deepclone, getdocument, getdocumentobjecttype, getnextsibling, getowner, getprevioussibling, iscomposite
 
methods inherited from interface com.spire.doc.interfaces.istyleholder
applystyle, applystyle, getstylename
 
method detail

gettext

java.lang.string gettext()
returns paragraph text.
returns:
text

settext

void settext(java.lang.string value)
sets paragraph text.
parameters:
value - value

get

paragraphbase get(int index)
gets the paragraphbase at the specified index.
parameters:
index - index
returns:
paragraphbase

getitems

paragraphitemcollection getitems()
gets the paragraph items.
returns:
the items.

getformat

paragraphformat getformat()
gets the paragraph format.
returns:
paragraphformat

getlistformat

listformat getlistformat()
gets list formatting for the paragraph.
returns:
listformat

getbreakcharacterformat

characterformat getbreakcharacterformat()
gets the character format for the break symbol.
returns:
characterformat

isincell

boolean isincell()
gets a value indicating whether this paragraph is in cell.
returns:
if this paragraph is in cell, set to true.

isendofsection

boolean isendofsection()
gets a value indicating whether this paragraph is end of section.
returns:
if this paragraph is end of section, set to true.

isendofdocument

boolean isendofdocument()
gets a value indicating whether this paragraph is end of document.
returns:
if this instance is end of document, set to true.

appendtext

textrange appendtext(java.lang.string text)
appends text to the end of paragraph.
parameters:
text - the text.
returns:
textrange

appendpicture

docpicture appendpicture(java.io.inputstream inputstream)
appends picture to the end of paragraph.
parameters:
inputstream - the file input stream
returns:
docpicture

appendpicture

docpicture appendpicture(java.lang.string filepath)
appends picture to the end of paragraph.
parameters:
filepath - the file path
returns:
docpicture

appendpicture

docpicture appendpicture(byte[] imagebytes)
appends picture to the end of paragraph.
parameters:
imagebytes - the image bytes.
returns:
docpicture

appendfield

field appendfield(java.lang.string fieldname,
                  fieldtype fieldtype)
appends field to the end of paragraph
parameters:
fieldname - name of the field.
fieldtype - type of the field.
returns:
field

appendbookmarkstart

bookmarkstart appendbookmarkstart(java.lang.string name)
appends start of the bookmark with specified name into paragraph.
parameters:
name - the name.
returns:
bookmarkstart

appendbookmarkend

bookmarkend appendbookmarkend(java.lang.string name)
appends end of the bookmark with specified name into paragraph.
parameters:
name - the name.
returns:
bookmarkend

appendcomment

comment appendcomment(java.lang.string text)
appends the comment.
parameters:
text - text
returns:
comment

appendfootnote

footnote appendfootnote(footnotetype type)
appends the footnote.
parameters:
type - the type.
returns:
footnote

appendtextbox

textbox appendtextbox(float width,
                      float height)
appends textbox to the end of the paragraph
parameters:
width - textbox width
height - textbox height
returns:
textbox

appendsymbol

symbol appendsymbol(byte charactercode)
appends symbol to the end of paragraph.
parameters:
charactercode - the character code.
returns:
symbol

appendbreak

break appendbreak(breaktype breaktype)
appends break to end of paragraph.
parameters:
breaktype - type of the break.
returns:
break

appendhtml

void appendhtml(java.lang.string html)
appends the html.
parameters:
html - the html.

getstyle

paragraphstyle getstyle()
gets related style.
returns:
paragraphstyle

replace

int replace(java.lang.string given,
            textselection textselection,
            boolean casesensitive,
            boolean wholeword)
replaces all entries of matchstring string with textrangesholder, taking into consideration casesensitive and wholeword options.
parameters:
given - the matchstring.
textselection - the text selection.
casesensitive - if it specifies case sensitive search, set to true
wholeword - if it specifies the whole word to be newvalue, set to true.
returns:
int value

appendcheckbox

checkboxformfield appendcheckbox()
appends the check box.
returns:
checkboxformfield

appendtextformfield

textformfield appendtextformfield(java.lang.string defaulttext)
appends the text form field.
parameters:
defaulttext - the default text.
returns:
textformfield

appenddropdownformfield

dropdownformfield appenddropdownformfield()
appends the drop down form field.
returns:
dropdownformfield

appendcheckbox

checkboxformfield appendcheckbox(java.lang.string checkboxname,
                                 boolean defaultcheckboxvalue)
appends the check box.
parameters:
checkboxname - name of the check box.
defaultcheckboxvalue - default checkbox value.
returns:
checkboxformfield

appendtextformfield

textformfield appendtextformfield(java.lang.string formfieldname,
                                  java.lang.string defaulttext)
appends the text form field.
parameters:
formfieldname - name of the form field.
defaulttext - the default text.
returns:
textformfield

appenddropdownformfield

dropdownformfield appenddropdownformfield(java.lang.string dropdropdownname)
appends the drop down form field.
parameters:
dropdropdownname - name of the drop drop down
returns:
dropdownformfield

appendhyperlink

field appendhyperlink(java.lang.string link,
                      java.lang.string text,
                      hyperlinktype type)
appends the hyperlink.
parameters:
link - the link.
text - the text to display.
type - the hyperlink type.
returns:
field

appendhyperlink

field appendhyperlink(java.lang.string link,
                      docpicture picture,
                      hyperlinktype type)
appends the hyperlink.
parameters:
link - the link.
picture - the picture to display.
type - the type of hyperlink.
returns:
field

removeabsposition

void removeabsposition()
removes the absolute position data. if paragraph has absolute position in the document, all position data will be erased.

appendtoc

tableofcontent appendtoc(int lowerheadinglevel,
                         int upperheadinglevel)
appends the toc.
parameters:
lowerheadinglevel - the lower heading level.
upperheadinglevel - the upper heading level.
returns:
tableofcontent

appendoleobject

docoleobject appendoleobject(java.io.inputstream olestream,
                             docpicture olepicture,
                             oleobjecttype type)
appends the ole object.
parameters:
olestream - the ole stream.
olepicture - the ole picture.
type - type
returns:
docoleobject

appendoleobject

docoleobject appendoleobject(byte[] olebytes,
                             docpicture olepicture,
                             oleobjecttype type)
appends the ole object.
parameters:
olebytes - the ole bytes.
olepicture - the ole picture.
type - type
returns:
docoleobject

appendoleobject

docoleobject appendoleobject(java.lang.string pathtofile,
                             docpicture olepicture,
                             oleobjecttype type)
appends the ole object.
parameters:
pathtofile - the path to file.
olepicture - the ole picture.
type - type of the ole object file
returns:
docoleobject

appendoleobject

docoleobject appendoleobject(java.lang.string pathtofile,
                             docpicture olepicture)
appends the ole object.
parameters:
pathtofile - the path to file.
olepicture - the ole picture.
returns:
docoleobject

appendoleobject

docoleobject appendoleobject(java.io.inputstream stream,
                             docpicture pic,
                             olelinktype olelinktype)
appends the ole object into paragraph.
parameters:
stream - the ole storage.
pic - the ole picture.
olelinktype - the type of ole object link type.
returns:
docoleobject

appendoleobject

docoleobject appendoleobject(byte[] olebytes,
                             docpicture olepicture,
                             olelinktype olelinktype)
appends the ole object.
parameters:
olebytes - the ole storage bytes.
olepicture - the ole picture.
olelinktype - type of the ole link.
returns:
docoleobject

appendoleobject

docoleobject appendoleobject(byte[] olebytes,
                             docpicture olepicture,
                             java.lang.string fileextension)
appends the openpackage ole object (ole object without specified type).
parameters:
olebytes - the ole object bytes.
olepicture - the ole picture.
fileextension - the file extension.
returns:
docoleobject

appendoleobject

docoleobject appendoleobject(java.io.inputstream olestream,
                             docpicture olepicture,
                             java.lang.string fileextension)
appends the openpackage ole object (ole object without specified type).
parameters:
olestream - the ole file stream.
olepicture - the ole picture
fileextension - the file extension.
returns:
docoleobject


网站地图