Back to Devexpress

RichEditCommands.insertTableOfContents Property

aspnet-js-richeditcommands-7c27ec18.md

latest1.3 KB
Original Source

RichEditCommands.insertTableOfContents Property

Gets a command to insert a table of contents.

Declaration

ts
get insertTableOfContents(): InsertTableOfContentsCommand

Property Value

TypeDescription
InsertTableOfContentsCommand

An object that provides methods that execute the command and check its state.

|

Remarks

Call the execute method to invoke the command. The method checks the command state (obtained via the getState method) to determine whether the action can be performed.

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

Usage Example:

javascript
richEdit.commands.insertTableOfContents.execute();

Refer to the following section for more information: Client Commands.

See Also

Table of Contents

RichEditCommands Class

RichEditCommands Members