View on GitHub

dotnet-eud

.NET Controls End-User Documentation

Create a Table of Contents

Create a TOC Using Built-In Heading Styles

The easiest way to create a TOC is to use built-in heading styles.

Create a TOC Using Paragraph Outline Levels

If you wish to include some text in a TOC without changing the text appearance, you can use outline levels. Unlike heading styles, outline levels applied to text do not affect text formatting characteristics.

Create a TOC Using Fields

Along with built-in heading styles and outline levels, there is another way to label text to include it in a TOC - via TC fields. Sometimes it can be quicker and easier to add TC fields to mark TOC entries, rather than format the document using heading styles or outline levels. TC fields can be also helpful if you want to capture a portion of a long heading that should not be entirely included in the TOC and include only that portion in the TOC. In addition, if your document needs two or more TOCs showing different entries, you can mark entries for a particular TOC using TC fields with an identifier, which is specific for each TOC.