TXTextControl.TableOfContentsDialog Method

Invokes the built-in dialog box for inserting or changing a table of contents. If the current text input position is in an existing table of contents, the dialog box shows its attributes and the user can change it. Otherwise, a new table of contents is inserted with the specified attributes.

Introduced: 29.0.

Syntax

TXTextControl.TableOfContentsDialog

Return Value

The method returns the unique identifier of the changed or inserted table of contents. The method returns 0, if the dialog box has been left with Cancel or the table of contents is empty because no entry has been found in the document.

Data Types

Return value: Long

See Also