Back to Devexpress

TOC

aspnet-120115-components-rich-text-editor-mail-merge-field-codes-toc-article.md

latest2.0 KB
Original Source

TOC

  • Dec 17, 2020
  • 2 minutes to read

Non-MailMerge field

Generates a table of contents, table of figures, table of tables, or table of equations depending on the field switches.

Note, the TOC field is not updated when a document is printed.

{ TOC [switches] }

SwitchDescription
Without switches the table of contents is built based on heading paragraphs.
\hInserts table of contents entries as hyperlinks.
\n “LevelStart-LevelEndOmits page numbers from the table of contents in the specified levels (for example, { TOC \n 1-1 } omits page numbers from level 1). If the range is not specified, omits page numbers from all levels.
\uUses the applied paragraph outline level.
\o “LevelStart-LevelEndBuilds a table of contents from paragraphs with specified outline levels. For example, { TOC \o “1-3” } lists only paragraphs with outline levels 1 through 3.
\c “Seq Field IdentifierBuilds a table of contents from items that are numbered by SEQ fields. The sequence identifier designated by text in this switch’s field-argument shall match the identifier in the corresponding TOC field.
\f “TC IdentifierBuilds a table of contents from TC fields. TC field identifier must exactly match the text in this switch’s field-argument.
\l “LevelStart-LevelEndUsed with \f. Builds a table of contents from TC fields that assign entries to one of the specified levels. For example, { TOC \f \l 1-3} lists only TC fields with l switch argument 1 through 3.
\p “SeparatorSpecified the characters that separate the sequence numbers and page numbers. The default is a tab with leader dots. You can use up to five characters, which must be enclosed in quotation marks.

See Also

Table of Contents