TX Text Control .NET for Windows Forms

TablesOfContents Property

Property|Introduced in 29.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.Windows.Forms.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets a collection of all tables of contents in the text part with the input focus. This can be the main text, a text frame or a header or footer. The property's value is an object of the type TableOfContentsCollection.

Syntax

public TableOfContentsCollection TablesOfContents { get; }

Examples

The following example iterates through the tables of contents collection and processes each table of contents.

foreach (TableOfContents tableOfContents in textControl.TablesOfContents)
{
    tableOfContents.Name = "CustomerName";
}

Limitations

Read only.

Runtime only.