bodyregion-ag凯发旗舰厅



com.spire.doc
class bodyregion

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.bodyregion
all implemented interfaces:
ibodyregion, idocumentobject
direct known subclasses:
paragraph, structuredocumenttag, table

public abstract class bodyregion
extends documentbase
implements ibodyregion

constructor summary
bodyregion(document doc)
          initializes a new instance of the bodyregion class.
 
method summary
abstract  textselection find(java.util.regex.pattern pattern)
          finds text by specified pattern.
 boolean isdeleterevision()
          gets a value indicating whether this item was deleted from the document.
 boolean isinsertrevision()
          gets a value indicating whether this item was inserted to the document.
 body ownertextbody()
          gets the owner text body.
abstract  int replace(java.util.regex.pattern pattern, java.lang.string replace)
          replaces all entries of matchstring regular expression with newvalue string.
abstract  int replace(java.util.regex.pattern pattern, textselection textselection)
          replaces by specified pattern.
abstract  int replace(java.util.regex.pattern pattern, textselection textselection, boolean saveformatting)
          replaces by specified pattern.
abstract  int replace(java.lang.string given, java.lang.string replace, boolean casesensitive, boolean wholeword)
          replaces by specified matchstring string.
 
methods inherited from class com.spire.doc.documentobject
deepclone, getchildobjects, getdocumentobjecttype, 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, getdocumentobjecttype, getnextsibling, getowner, getprevioussibling, iscomposite
 
constructor detail

bodyregion

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

ownertextbody

public body ownertextbody()
gets the owner text body.
returns:
the owner text body.

isinsertrevision

public boolean isinsertrevision()
gets a value indicating whether this item was inserted to the document.
returns:
boolean

isdeleterevision

public boolean isdeleterevision()
gets a value indicating whether this item was deleted from the document.
returns:
boolean

find

public abstract textselection find(java.util.regex.pattern pattern)
finds text by specified pattern.
parameters:
pattern - the pattern.
returns:
textselection

replace

public abstract int replace(java.util.regex.pattern pattern,
                            java.lang.string replace)
replaces all entries of matchstring regular expression with newvalue string.
specified by:
replace in interface ibodyregion
parameters:
pattern - pattern
replace - replace text
returns:
int

replace

public abstract int replace(java.lang.string given,
                            java.lang.string replace,
                            boolean casesensitive,
                            boolean wholeword)
replaces by specified matchstring string.
specified by:
replace in interface ibodyregion
parameters:
given - the matchstring.
replace - the newvalue.
casesensitive - if it specifies case sensitive, set to true
wholeword - if it specifies to search a whole word,set to true
returns:
int

replace

public abstract int replace(java.util.regex.pattern pattern,
                            textselection textselection)
replaces by specified pattern.
specified by:
replace in interface ibodyregion
parameters:
pattern - the pattern.
textselection - the text selection.
returns:
int

replace

public abstract int replace(java.util.regex.pattern pattern,
                            textselection textselection,
                            boolean saveformatting)
replaces by specified pattern.
parameters:
pattern - the pattern.
textselection - the text selection.
saveformatting - if save source formatting, set to true
returns:
int


网站地图