Skip to main content
cut

RichEditCommands.updateTableOfContents Property

Gets a command to update a table of contents.

Declaration

get updateTableOfContents(): UpdateTableOfContentsCommand

Property Value

Type Description
UpdateTableOfContentsCommand

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.

Use the 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();

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

See Also