mergefield-ag凯发旗舰厅
com.spire.doc.fields
class mergefield
java.lang.object
com.spire.doc.ownerholder
com.spire.doc.documents.xml.documentserializable
com.spire.doc.documentobject
com.spire.doc.documentbase
com.spire.doc.fields.paragraphbase
com.spire.doc.fields.textrange
com.spire.doc.fields.field
com.spire.doc.fields.mergefield
- all implemented interfaces:
- irunattrsource, idocumentobject, ifield, imergefield, iparagraphbase, itextrange
public class mergefield
- extends field
- implements imergefield
methods inherited from class com.spire.doc.fields.field |
downloadimage, getcode, getend, getfieldtext, getpattern, getseparator, gettextformat, gettype, getvalue, islocked, islocked, setcode, setend, setfieldtext, setpattern, settextformat, settype |
mergefield
public mergefield(idocument doc)
- initializes a new instance of the class.
- parameters:
doc
- the document
getdocumentobjecttype
public documentobjecttype getdocumentobjecttype()
- gets the type of the document object.
- specified by:
getdocumentobjecttype
in interface idocumentobject
- overrides:
getdocumentobjecttype
in class field
- returns:
- the type of the document object.
getfieldname
public java.lang.string getfieldname()
- returns field name
- specified by:
getfieldname
in interface imergefield
- returns:
- the name
setfieldname
public void setfieldname(java.lang.string value)
- sets field name
- specified by:
setfieldname
in interface imergefield
- parameters:
value
- the name
gettext
public java.lang.string gettext()
- description copied from class:
textrange
- returns text.
- specified by:
gettext
in interface itextrange
- overrides:
gettext
in class textrange
- returns:
- string
settext
public void settext(java.lang.string value)
- description copied from class:
textrange
- sets text.
- specified by:
settext
in interface itextrange
- overrides:
settext
in class textrange
- parameters:
value
- string
gettextbefore
public java.lang.string gettextbefore()
- returns the text before merge field
- specified by:
gettextbefore
in interface imergefield
- returns:
- the text
settextbefore
public void settextbefore(java.lang.string value)
- sets the text before merge field
- specified by:
settextbefore
in interface imergefield
- parameters:
value
- the text
gettextafter
public java.lang.string gettextafter()
- returns the text after merge field
- specified by:
gettextafter
in interface imergefield
- returns:
- the text
settextafter
public void settextafter(java.lang.string value)
- sets the text after merge field
- specified by:
settextafter
in interface imergefield
- parameters:
value
- the text
getprefix
public java.lang.string getprefix()
- gets the prefix of merge field.
- returns:
- the prefix
getnumberformat
public java.lang.string getnumberformat()
- gets the number format.
- returns:
- the number format
getdateformat
public java.lang.string getdateformat()
- gets the date format.
- returns:
- the date format
gettextitems
public paragraphitemcollection gettextitems()
- gets the text items.
- returns:
- the text items.