Using a Table of Contents
A TXTextControl document can hold a table of contents with page numbers. The methods below delete and update it and open the built-in dialog box for inserting or changing it; the events report that one has been created or deleted, or that the input position enters or leaves it.
Methods
| Member | Description |
|---|---|
TXTextControl.TableOfContentsDelete | This method can be used to delete a table of contents. |
TXTextControl.TableOfContentsDialog | Invokes the built-in dialog box for inserting or changing a table of contents. |
TXTextControl.TableOfContentsUpdate | This method can be used to update the content and the page numbers of a table of contents. |
Events
| Member | Description |
|---|---|
TXTextControl.TableOfContentsCreated | Occurs when a table of contents has been created. |
TXTextControl.TableOfContentsDeleted | Occurs when a table of contents has been deleted. |
TXTextControl.TableOfContentsEntered | Occurs when the current text input position has been moved to a position that belongs to a table of contents. |
TXTextControl.TableOfContentsLeft | Occurs when the current text input position has left a table of contents. |