CreateFieldCommand.execute Method
In This Article
Executes the CreateFieldCommand command with the specified parameter.
#Declaration
TypeScript
execute(
code?: string
): boolean
#Parameters
Name | Type | Description |
---|---|---|
code | string | A string value specifying the field code receiving to the created field. |
#Returns
Type | Description |
---|---|
boolean |
|
#Remarks
Usage example:
richEdit.commands.createField.execute("TOC \\h \\c \"Figure\"");
richEdit.commands.createField.execute("SEQ Equation \\* ARABIC");
richEdit.commands.createField.execute("TIME \\@ \"h:mm:ss\"");
See Also