public class FieldMacroButton extends Field
Allows a macro or command to be run.
In Aspose.Words this field can also act as a merge field.
| Modifier and Type | Method and Description |
|---|---|
boolean |
canWorkAsMergeField() |
java.lang.String |
getDisplayText()
Gets the text to appear as the "button" that is selected to run the macro or command.
|
java.lang.String |
getMacroName()
Gets the name of the macro or command to run.
|
java.lang.String |
getMergeFieldName() |
boolean |
isMergeValueRequired() |
void |
setDisplayText(java.lang.String value)
Sets the text to appear as the "button" that is selected to run the macro or command.
|
void |
setMacroName(java.lang.String value)
Sets the name of the macro or command to run.
|
getDisplayResult, getEnd, getFieldCode, getFieldCode, getFormat, getLocaleId, getResult, getSeparator, getStart, getType, isDirty, isDirty, isLocked, isLocked, needStoreOldResultNodes, remove, setLocaleId, setResult, unlink, update, updatepublic java.lang.String getMergeFieldName()
public boolean canWorkAsMergeField()
public boolean isMergeValueRequired()
public java.lang.String getMacroName()
public void setMacroName(java.lang.String value)
throws java.lang.Exception
value - The name of the macro or command to run.java.lang.Exceptionpublic java.lang.String getDisplayText()
public void setDisplayText(java.lang.String value)
throws java.lang.Exception
value - The text to appear as the "button" that is selected to run the macro or command.java.lang.Exception