TablesOfContents Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets a collection of all tables of contents in a text frame. The property's value is an object of the type TableOfContentsCollection.
Syntax
public TableOfContentsCollection TablesOfContents { get; }Public ReadOnly Property TablesOfContents As TableOfContentsCollectionExamples
The following example applies bold formatting through the text frame's selection by using TextFrame.TablesOfContents.
Selection formattedSelection = textFrame.Selection;
formattedSelection.Bold = true;
textFrame.Selection = formattedSelection;
foreach (TableOfContents tableOfContents in textFrame.TablesOfContents)
{
tableOfContents.Name = "CustomerName";
}Dim formattedSelection As Selection = textFrame.Selection
formattedSelection.Bold = True
textFrame.Selection = formattedSelection
For Each tableOfContents As TableOfContents In textFrame.TablesOfContents
tableOfContents.Name = "CustomerName"
NextLimitations
Read only.