Class TableOfContentsEntry
Represents a single entry in a TableOfContents.
Inherited Members
Namespace: DRIT.Document
Assembly: DRIT.Document.dll
Syntax
public class TableOfContentsEntry
Constructors
TableOfContentsEntry()
Initializes a new instance of the TableOfContentsEntry class.
Declaration
public TableOfContentsEntry()
TableOfContentsEntry(int, string, int)
Creates a TOC entry with the given level, text, and page number.
Declaration
public TableOfContentsEntry(int level, string text, int pageNumber)
Parameters
| Type | Name | Description |
|---|---|---|
| int | level | Heading level (1-9). |
| string | text | Heading text. |
| int | pageNumber | Page number where the heading appears. |
Properties
Level
Heading level (1-9). 1 = top-level heading.
Declaration
public int Level { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
PageNumber
The page number on which the heading appears.
Declaration
public int PageNumber { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Text
The text of the heading.
Declaration
public string Text { get; set; }
Property Value
| Type | Description |
|---|---|
| string |