Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Collapse]WinForms Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Chart Control
  [Expand]Diagrams
  [Expand]Gauges
  [Expand]Map Control
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Collapse]Rich Text Editor
   [Expand]Product Information
    Product Class Structure
   [Expand]Getting Started
   [Expand]RichEditControl Document
   [Expand]Fields
    Text Formatting
    Import and Export
   [Expand]Page Layout
    Printing
    Spell Checking
    AutoCorrect
    Mail Merge
    Restrictions and Protection
    Syntax Highlighting
    Traversing the Document
   [Expand]Visual Elements
    Services
    Events
    Commands
   [Expand]Member Tables
    Keyboard Shortcuts
    HTML Tag Interpretation
   [Collapse]Examples
    [Expand]Files
    [Expand]Text
    [Expand]Formatting
    [Expand]Styles
    [Expand]Lists
    [Expand]Pictures
    [Expand]Text Boxes
    [Expand]Tables
    [Expand]Layout
    [Collapse]Automation
      How to: Create a Table of Contents
      How to: Create a Table of Contents in Code
      How to: Add and Modify Fields
      How to: Handle the HyperlinkClick Event to Invoke the Custom Form
    [Expand]Search and Replace
    [Expand]Mail Merge
    [Expand]Spell Check
    [Expand]Export-Import
    [Expand]Printing
    [Expand]Protection
    [Expand]User Interface Customization
    [Expand]Miscellaneous
    [Expand]Commands
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]Printing-Exporting
  [Expand]PDF Viewer
   Reporting
  [Expand]Snap
  [Expand]TreeMap Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

How to: Create a Table of Contents

You can generate a table of contents automatically. To accomplish this task, follow the steps below.

  1. Mark entries
    • by using built-in heading styles
    • Click in the paragraph that you want to appear in the table of contents. On the References tab, in the Table of Contents group, click Add Text, and then select the desired outline level.

    • by specifying a paragraph outline level
    • Click in the paragraph that you want to appear in the table of contents.

      Invoke the Paragraph dialog box via the context menu or using Ribbon UI. If using Ribbon UI, on the Home tab, click the Paragraph Dialog Box Launcher and then use the Outline level combo box to specify the outline level.

  2. Insert Table of Contents

    Click where you want to insert the table of contents.

    On the References tab, click Table of Contents in the Table of Contents group.

  3. Update Table of Contents

    If you have modified entries in your document, you can quickly update the table of contents.

    On the References tab, click Update Table in the Table of Contents group.

  4. Format Table of Contents

    After the table of contents is created, the document is containing several styles named "TOC 1", "TOC 2" etc., depending on how many levels the table of contents includes. You can modify these styles to change formatting applied to different levels.

  5. Modify Table of Contents

    You can use field switches to specify a separator between sequence and page numbers, the outline levels to be included and whether table entries should be hyperlinks or not.

    To display and edit a TOC field, use the Update Field command in the context menu or click Show All Field Codes button in the Mail Merge group. Type in codes as described in the TOC field article.

Expanded See Also

How would you rate this topic?​​​​​​​