|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.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
public class MergeField
| Constructor Summary | |
|---|---|
MergeField(IDocument doc)
Initializes a new instance of the |
|
| Method Summary | |
|---|---|
java.lang.String |
getDateFormat()
Gets the date format. |
DocumentObjectType |
getDocumentObjectType()
Gets the type of the document object. |
java.lang.String |
getFieldName()
Returns field name |
java.lang.String |
getNumberFormat()
Gets the number format. |
java.lang.String |
getPrefix()
Gets the prefix of merge field. |
java.lang.String |
getText()
Returns text. |
java.lang.String |
getTextAfter()
Returns The text after merge field |
java.lang.String |
getTextBefore()
Returns The text before merge field |
ParagraphItemCollection |
getTextItems()
Gets the text items. |
void |
setFieldName(java.lang.String value)
Sets field name |
void |
setText(java.lang.String value)
sets text. |
void |
setTextAfter(java.lang.String value)
Sets the text after merge field |
void |
setTextBefore(java.lang.String value)
Sets the text before merge field |
| 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 |
| Methods inherited from class com.spire.doc.fields.TextRange |
|---|
getCharacterFormat |
| Methods inherited from class com.spire.doc.fields.ParagraphBase |
|---|
applyCharacterFormat, applyStyle, getAncestor, getChildObjects, getOwnerParagraph, getStyleName, isDeleteRevision, isInsertRevision |
| Methods inherited from class com.spire.doc.DocumentObject |
|---|
deepClone, getFirstChild, getLastChild, getNextSibling, getOwner, getPreviousSibling, isComposite |
| Methods inherited from class com.spire.doc.OwnerHolder |
|---|
getDocument |
| Methods inherited from interface com.spire.doc.interfaces.IField |
|---|
getType, setType |
| Methods inherited from interface com.spire.doc.interfaces.ITextRange |
|---|
applyCharacterFormat, getCharacterFormat |
| Methods inherited from interface com.spire.doc.interfaces.IParagraphBase |
|---|
applyStyle, getOwnerParagraph, getStyleName |
| Methods inherited from interface com.spire.doc.interfaces.IDocumentObject |
|---|
deepClone, getDocument, getNextSibling, getOwner, getPreviousSibling, isComposite |
| Methods inherited from interface com.spire.doc.documents.IRunAttrSource |
|---|
clearRunAttrs, fetchInheritedRunAttr, getDirectRunAttr, getDirectRunAttrByIndex, getDirectRunAttrsCount, setRunAttr |
| Constructor Detail |
|---|
public MergeField(IDocument doc)
doc - The document| Method Detail |
|---|
public DocumentObjectType getDocumentObjectType()
getDocumentObjectType in interface IDocumentObjectgetDocumentObjectType in class Fieldpublic java.lang.String getFieldName()
getFieldName in interface IMergeFieldpublic void setFieldName(java.lang.String value)
setFieldName in interface IMergeFieldvalue - The namepublic java.lang.String getText()
TextRange
getText in interface ITextRangegetText in class TextRangepublic void setText(java.lang.String value)
TextRange
setText in interface ITextRangesetText in class TextRangevalue - Stringpublic java.lang.String getTextBefore()
getTextBefore in interface IMergeFieldpublic void setTextBefore(java.lang.String value)
setTextBefore in interface IMergeFieldvalue - The textpublic java.lang.String getTextAfter()
getTextAfter in interface IMergeFieldpublic void setTextAfter(java.lang.String value)
setTextAfter in interface IMergeFieldvalue - The textpublic java.lang.String getPrefix()
public java.lang.String getNumberFormat()
public java.lang.String getDateFormat()
public ParagraphItemCollection getTextItems()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||