TX Text Control .NET Server

MaximumStructureLevel 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 or sets the maximum structure level for this table of contents. The table of contents contains all paragraphs with a structure level less than or equal this value. It must be between 1 and 10.

Syntax

public short MaximumStructureLevel { get; set; }

Examples

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

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

tableOfContents.MaximumStructureLevel = 10;
Console.WriteLine($"Maximum Structure Level used by Table Of Contents: {tableOfContents.MaximumStructureLevel}");