ODF .NET Class Library
Show/Hide TOC

# TableOfContents Class

Represents a table of contents for a document.

## Definition

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

    public class TableOfContents : ITextContent,
    	IIndexContent, IContentElement, ICellContent, IHeaderFooterContent

VB

    Public Class TableOfContents
    	Implements ITextContent, IIndexContent, IContentElement, ICellContent,
    	IHeaderFooterContent

Inheritance
  Object TableOfContents

Implements
  ICellContent, IContentElement, IIndexContent, ITextContent, IHeaderFooterContent

## Constructors

TableOfContents | Initializes a new instance of the TableOfContents class.

## Properties

IndexBody | Contains an index.
IsProtected | Specifies whether a section is protected.
Name | Contains the name.
ProtectionKey | Specifies that an authorization is required for removing the protection of a section.
Source | Specifies how a table of contents is generated.
Style | Contains the section family style.

## Methods

Clone | Creates a new object that is a deep copy of the current instance.
Equals | (Inherited from Object)
Finalize | (Inherited from Object)
GetContentElements | Returns all content elements.
GetHashCode | (Inherited from Object)
GetParent | Returns the parent element.
GetType | (Inherited from Object)
MemberwiseClone | (Inherited from Object)
ToString | Converts the value of the current TableOfContents object to its equivalent string representation. (Overrides ObjectToString)

## See Also

#### Reference

Independentsoft.Office.Odf Namespace