TX Text Control .NET for WPF

Name Property

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

Description

Gets or sets a name for the table of contents. An empty string indicates that the table of contents has no name.

Syntax

public string Name { get; set; }

Examples

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

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

tableOfContents.Name = "TableOfContents1";
if (!string.IsNullOrWhiteSpace(tableOfContents.Name))
{
    Console.WriteLine($"Name: {tableOfContents.Name}");
}