TX Text Control .NET for WPF

AutoGenerationType 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 the type of auto-generation. A document link in a table of contents is automatically generated when the table of contents is inserted into the document.

Syntax

public AutoGenerationType AutoGenerationType { get; }

Members

ValueDescription
NoneThe document link is not automatically generated.
TableOfContentsThe document link has automatically been generated for an entry in a table of contents.

Examples

The following example creates an internal link to the customer-details destination by using DocumentLink.AutoGenerationType.

DocumentTarget target = new("CustomerDetails");
textControl.DocumentTargets.Add(target);
DocumentLink documentLink = new("View customer details", target);
textControl.DocumentLinks.Add(documentLink);

Console.WriteLine($"Auto Generation Type: {documentLink.AutoGenerationType}");
Console.WriteLine("Document Link is ready for use.");

Limitations

Read only.