ODF .NET Class Library
Show/Hide TOC

# TableOfContentsSource Class

Represents how a table of contents is generated. It also specifies the styles to be applied to index entries.

## Definition

Namespace: Independentsoft.Office.Odf
Assembly: Independentsoft.Office.Odf (in Independentsoft.Office.Odf.dll) Version: 3.0.460.1+37fe42d8e65847775742df0a70fdb403ab6fa65f
C#

    public class TableOfContentsSource

VB

    Public Class TableOfContentsSource

Inheritance
  Object TableOfContentsSource

## Constructors

TableOfContentsSource | Initializes a new instance of the TableOfContentsSource class.

## Properties

EntryTemplates | Contains a collection of TableOfContentsEntryTemplate objects.
IndexScope | Specifies whether an index is constructed for an entire document or for a chapter.
IndexSourceStyles | Contains a collection of IndexSourceStyle objects.
IndexTitleTemplate | Contains the style and content of the index title.
IsRelativeTabStopPosition | Specifies whether the position of tab stops is relative to the left margin or to the left indent as determined by the paragraph style.
OutlineLevel | Specifies which outline levels are used when generating a table of contents. The value of this attribute shall be an integer greater than zero. If this attribute is omitted, all outline levels are used by default.
UseIndexMarks | Specifies whether table of contents index marks are used to generate index entries.
UseIndexSourceStyles | Specifies whether index entries are generated for paragraphs formatted using the paragraph styles.
UseOutlineLevel | Specifies whether headings are used to generate index entries.

## Methods

Clone | Creates a new object that is a deep copy of the current instance.
Equals | (Inherited from Object)
Finalize | (Inherited from Object)
GetHashCode | (Inherited from Object)
GetType | (Inherited from Object)
MemberwiseClone | (Inherited from Object)
ToString | Converts the value of the current TableOfContentsSource object to its equivalent string representation. (Overrides ObjectToString)

## See Also

#### Reference

Independentsoft.Office.Odf Namespace