bodyregion-ag凯发旗舰厅
com.spire.doc
class bodyregion
java.lang.object
com.spire.doc.ownerholder
com.spire.doc.documents.xml.documentserializable
com.spire.doc.documentobject
com.spire.doc.documentbase
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. |
bodyregion
public bodyregion(document doc)
- initializes a new instance of the bodyregion class.
- parameters:
doc
- the doc.
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
- patternreplace
- 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 truewholeword
- 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