New to Telerik UI for WPF? Download free 30-day trial

Table of Contents Dialog

This dialog allows you to insert a table of contents in the document.

An image showing the table of contents dialog of RadRichTextBox for WPF

The dialog can be opened from the Table of Contents button in the References tab of the RadRichTextBoxRibbonUI.

An image showing the button that opens the table of contents dialog of RadRichTextBox for WPF

Showing the Dialog Manually

The dialog can be shown by executing the ShowInsertTableOfContentsDialogCommand. See how to bind the command to an external button in the Commands article.

Executing the show dialog command

this.richTextBox.Commands.ShowInsertTableOfContentsDialogCommand.Execute(null); 
Alternatively, call the ShowInsertTableOfContentsDialog method of RadRichTextBox.

Using the show dialog method

this.richTextBox.ShowInsertTableOfContentsDialog(); 
In this article