Table of Contents

Class TableOfContentsOptions

Namespace
DocWright.Dom.Editing
Assembly
DocWright.Dom.dll

What a table of contents lists and how (Word's References > Table of Contents dialog).

public sealed class TableOfContentsOptions
Inheritance
TableOfContentsOptions
Inherited Members

Constructors

TableOfContentsOptions()

Properties

AdditionalStyles

Gets the other styles listed and the level each is listed at (\t "Title,1,Quote,2"), at most 64. How they combine with outline levels is Word's (WQ-0110).

CaptionLabel

Gets or sets the caption label of a table of figures (\c "Figure", Insert Table of Figures): the paragraphs holding a SEQ field of that label are listed, in the Table of Figures style, instead of headings. Null for a table of contents.

Hyperlinks

Gets or sets whether each entry links to its heading (\h). Defaults to true.

MaxLevel

Gets or sets the lowest heading level listed, 1 to 9. Defaults to 3 (Word's default).

MinLevel

Gets or sets the highest heading level listed, 1 to 9. Defaults to 1.

RightAlignPageNumbers

Gets or sets whether page numbers sit at the right margin after a tab (false: \p " ", the number follows the text after a space). Defaults to true.

ShowPageNumbers

Gets or sets whether entries show their page numbers (false: \n). Defaults to true.

TabLeader

Gets or sets what fills the space before a right-aligned page number. Defaults to dots. Word keeps it in the entries' tab stop, not in the instruction: an update keeps the leader the table has.

UseEntryFields

Gets or sets whether TC fields are listed too (\f, Word's "Table entry fields"): each at its \l level with its text, in document order with the headings. Defaults to false.

UseHeadingStyles

Gets or sets whether paragraphs are listed by their styles' outline levels (\o). Defaults to true.

UseOutlineLevels

Gets or sets whether a paragraph's own outline level counts too (\u). Defaults to true.