Class TableOfContentsTypes
Table of contents layout type
Inheritance
Namespace: IronPdf
Assembly: IronPdf.dll
Syntax
public sealed class TableOfContentsTypes : Enum
The TableOfContentsTypes enumeration in IronPDF declares the layout used when ChromePdfRenderOptions.TableOfContents auto-builds a TOC from the document's <h1>-<h6> headings.
It belongs to the IronPdf namespace and exposes three values: None (default, no TOC), Basic (heading links only), and WithPageNumbers (dotted-leader page references).
See Add a Table of Contents for both layouts side by side.
Fields
Basic
Create a table of contents without page numbers
Declaration
public const TableOfContentsTypes Basic
Field Value
| Type | Description |
|---|---|
| TableOfContentsTypes |
Remarks
More performant, but does not include page numbers
None
Do not create a table of contents
Declaration
public const TableOfContentsTypes None
Field Value
| Type | Description |
|---|---|
| TableOfContentsTypes |
value__
Declaration
public int value__
Field Value
| Type | Description |
|---|---|
| System.Int32 |
WithPageNumbers
Create a table of contents WITH page numbers
Declaration
public const TableOfContentsTypes WithPageNumbers
Field Value
| Type | Description |
|---|---|
| TableOfContentsTypes |