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: X19.

TableOfContentsDialog()

public DialogResult TableOfContentsDialog();
Public Function TableOfContentsDialog() As DialogResult

Return Value

If the dialog has been left with the Cancel button the return value is DialogResult.Cancel. Otherwise, it is DialogResult.OK.