structuredocumenttag-ag凯发旗舰厅



com.spire.doc.documents
class structuredocumenttag

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
                      extended by com.spire.doc.documents.structuredocumenttag
all implemented interfaces:
ibodyregion, istructuredocument, icompositeobject, idocumentobject

public class structuredocumenttag
extends bodyregion
implements istructuredocument

this element specifies the presence of a structured document tag around one or more block-level structures (paragraphs, tables, etc.). the two child elements of this element shall be used to specify the properties and content of the current structured document tag via the sdtpr and sdtcontent elements, respectively.


constructor summary
structuredocumenttag(document doc)
          initializes a new instance of the block-level structured document tag class.
 
method summary
 textselection find(java.util.regex.pattern pattern)
          returns first entry of given regex.
 characterformat getbreakcharacterformat()
          gets character format for the break symbol.
 documentobjectcollection getchildobjects()
          gets the child entities.
 documentobjecttype getdocumentobjecttype()
          gets the type of the entity.
 int getindex(idocumentobject entity)
          returns the zero-based index of the specified entity.
 sdtcontent getsdtcontent()
          gets the a value specifies the last known contents of a structured document tag around one or more block-level structures.
 sdtproperties getsdtproperties()
          gets the structured document tag properties.
 int replace(java.util.regex.pattern pattern, java.lang.string replace)
          replaces all entries of matchstring regular expression with newvalue string.
 int replace(java.util.regex.pattern pattern, textselection textselection)
          replaces all entries of matchstring regular expression with textrangesholder.
 int replace(java.util.regex.pattern pattern, textselection textselection, boolean saveformatting)
          replaces all entries of matchstring regular expression with textrangesholder.
 int replace(java.lang.string given, java.lang.string replace, boolean casesensitive, boolean wholeword)
          replaces all entries of matchstring string with newvalue string, taking into consideration casesensitive and wholeword options.
 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.
 int replace(java.lang.string given, textselection textselection, boolean casesensitive, boolean wholeword, boolean saveformatting)
          replaces all entries of matchstring string with textrangesholder, taking into consideration casesensitive and wholeword options.
 void updatedatabinding()
          updates stuctured documnet tag content with bound data.
 
methods inherited from class com.spire.doc.bodyregion
isdeleterevision, isinsertrevision, ownertextbody
 
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
 
constructor detail

structuredocumenttag

public structuredocumenttag(document doc)
initializes a new instance of the block-level structured document tag class.
parameters:
doc - the doc.
method detail

getsdtcontent

public sdtcontent getsdtcontent()
gets the a value specifies the last known contents of a structured document tag around one or more block-level structures.
returns:
sdtcontent

getsdtproperties

public sdtproperties getsdtproperties()
gets the structured document tag properties.
specified by:
getsdtproperties in interface istructuredocument
returns:
sdtproperties

getbreakcharacterformat

public characterformat getbreakcharacterformat()
gets character format for the break symbol.
specified by:
getbreakcharacterformat in interface istructuredocument
returns:
characterformat

getdocumentobjecttype

public documentobjecttype getdocumentobjecttype()
gets the type of the entity.
specified by:
getdocumentobjecttype in interface idocumentobject
specified by:
getdocumentobjecttype in class documentobject
returns:
the type of the entity.

getchildobjects

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

getindex

public int getindex(idocumentobject entity)
returns the zero-based index of the specified entity.
parameters:
entity - the document object
returns:
int

updatedatabinding

public void updatedatabinding()
updates stuctured documnet tag content with bound data.
specified by:
updatedatabinding in interface istructuredocument

replace

public 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
specified by:
replace in class bodyregion
parameters:
pattern - the pattern
replace - replace string
returns:
int

replace

public int replace(java.lang.string given,
                   java.lang.string replace,
                   boolean casesensitive,
                   boolean wholeword)
replaces all entries of matchstring string with newvalue string, taking into consideration casesensitive and wholeword options.
specified by:
replace in interface ibodyregion
specified by:
replace in class bodyregion
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 int replace(java.util.regex.pattern pattern,
                   textselection textselection)
replaces all entries of matchstring regular expression with textrangesholder.
specified by:
replace in interface ibodyregion
specified by:
replace in class bodyregion
parameters:
pattern - the pattern.
textselection - the text selection.
returns:
int

replace

public int replace(java.util.regex.pattern pattern,
                   textselection textselection,
                   boolean saveformatting)
replaces all entries of matchstring regular expression with textrangesholder.
specified by:
replace in class bodyregion
parameters:
pattern - the pattern.
textselection - the text selection.
saveformatting - if it specifies save source formatting, set to true.
returns:
int

replace

public 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, set to true.
wholeword - if it specifies to check whole word, set to true .
returns:
int

replace

public int replace(java.lang.string given,
                   textselection textselection,
                   boolean casesensitive,
                   boolean wholeword,
                   boolean saveformatting)
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, set to true .
wholeword - if it specifies to search a whole word, set to true .
saveformatting - if it specifies save source formatting, set to true.
returns:
int

find

public textselection find(java.util.regex.pattern pattern)
returns first entry of given regex.
specified by:
find in class bodyregion
parameters:
pattern - the pattern.
returns:
textselection


网站地图