Skip to main content

InsertTableOfContentsCommand.execute Method

Executes the InsertTableOfContentsCommand command.

Declaration

execute(): boolean

Returns

Type Description
boolean

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

Remarks

This command adds the { TOC \h \u} field code at the current position in the document.

Usage Example:

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