Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

TocBlock

OfficeIMO.Markdown

Namespace
OfficeIMO.Markdown
Assembly
OfficeIMO.Markdown
Source revision
0eef6a5756b9 with working tree changes
Modifiers
sealed

MarkdownTable of contents block generated from document headings.

Inheritance

Constructors

public TocBlock() #

Properties

public bool Ordered { get; set; } #

When true, renders an ordered list; otherwise unordered.

public bool NormalizeLevels { get; set; } #

Normalize indentation to the minimum included heading level (default true).

public bool IncludeTitle { get; set; } #

Include a title above the generated table of contents when an output format supports it.

public string Title { get; set; } #

Title text for output formats that render TOC chrome.

public int TitleLevel { get; set; } #

Heading level for the title when an output format renders it as a heading.

public int MinLevel { get; set; } #

Minimum heading level included by the table of contents.

public int MaxLevel { get; set; } #

Maximum heading level included by the table of contents.

public MarkdownTocLayout Layout { get; set; } #

Preferred visual layout for output formats that support TOC chrome.

public MarkdownTocChrome Chrome { get; set; } #

Preferred visual chrome for output formats that support TOC containers.

public MarkdownTocScope Scope { get; set; } #

Scope used when the TOC entries were realized from a placeholder.

public string? ScopeHeadingTitle { get; set; } #

Heading title used when TocBlock.Scope is MarkdownTocScope.HeadingTitle.

public bool RequireTopLevel { get; set; } #

When true, top-level headings are included even when TocBlock.MinLevel starts deeper.

public bool TitleHeadingAlreadyRendered { get; set; } #

True when a TOC builder already emitted the title as the preceding heading.

public List<Entry> Entries { get; } #

Entries included in the TOC.