TX Text Control .NET Server

Number Property

Property|Introduced in 29.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.dll

Description

Gets the number of the table of contents in the text. The first table of contents has the number 1. The number is defined through the textflow. A table of contents with a smaller start position has a smaller number.

Syntax

public int Number { get; }

Examples

The following example creates a table of contents for the document's heading styles by using TableOfContents.Number.

TableOfContents tableOfContents = new(1, 3) { Name = "Contents", ID = 10 };
textControl.TablesOfContents.Add(tableOfContents);

Console.WriteLine($"Number: {tableOfContents.Number}");
Console.WriteLine("Table Of Contents is ready for use.");

Limitations

Read only.