Skip to main content

UpdateTableOfContentsCommand.execute Method

Executes the UpdateTableOfContentsCommand command.

Declaration

execute(): boolean

Returns

Type Description
boolean

true if the command has been successfully executed; false if the command execution has failed.

Remarks

Use the RichEditCommands.updateTableOfContents command to update the table of contents after its entries have been changed. If the current selection includes several tables of contents, the method updates the first one.

Usage example:

richEdit.commands.UpdateTableOfContents.execute();
See Also