Back to Devexpress

Table of Contents Dialog

windowsforms-119461-controls-and-libraries-rich-text-editor-visual-elements-dialogs-table-of-contents-dialog.md

latest2.0 KB
Original Source

Table of Contents Dialog

  • Jun 23, 2021

The Table of Contents dialog allows end-users to change the table of contents‘ appearance and preview the result.

End-users can right-click the table of contents and select the Edit Table of Contents… item in the context menu to invoke this dialog.

The table below describes the dialog’s options and the TOC field switches used to achieve the required result:

OptionDescriptionField Switch
Show page numbersShows or hides the entries’ page numbers.\n
Right-align page numbersAligns page numbers to the right. If this option is not specified, the page numbers are displayed near the entry title.\p “ “
Use hyperlinks instead of page numbersConverts the table entries to hyperlinks.\h
Show levelsDefines the displayed levels (1-9) in the table of contents. This option is unavailable for the table of contents based on the TC field.\o “LEVELSTART-LEVELEND”

Tip

Call the FieldCollection.Create method to insert a TOC field with the desired switches and create the table of contents in code. Refer to the How to: Create a Table of Contents in Code topic for an example.