MinimumStructureLevel Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets or sets the minimum structure level for this table of contents. The table of contents contains all paragraphs with a structure level larger than or equal this value. It must be between 1 and 10.
Syntax
public short MinimumStructureLevel { get; set; }Public Property MinimumStructureLevel As ShortExamples
The following example creates a table of contents for the document's heading styles by using TableOfContents.MinimumStructureLevel.
TableOfContents tableOfContents = new(1, 3) { Name = "Contents", ID = 10 };
textControl.TablesOfContents.Add(tableOfContents);
tableOfContents.MinimumStructureLevel = 10;
Console.WriteLine($"Minimum Structure Level used by Table Of Contents: {tableOfContents.MinimumStructureLevel}");Dim tableOfContents As New TableOfContents(1, 3) With { .Name = "Contents", .ID = 10 }
textControl.TablesOfContents.Add(tableOfContents)
tableOfContents.MinimumStructureLevel = 10
Console.WriteLine($"Minimum Structure Level used by Table Of Contents: {tableOfContents.MinimumStructureLevel}")