TX Text Control .NET for Windows Forms

AutoGenerationType Property

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

Description

Gets the type of auto-generation. A document target which is the target of an entry 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 target is not automatically generated.
TableOfContentsThe document target has automatically been generated as target of an entry in a table of contents. The TargetName begins with "TOC_" followed by an auto-generated number.

Examples

The following example creates a named destination for an internal document link by using DocumentTarget.AutoGenerationType.

DocumentTarget documentTarget = new("CustomerDetails");
textControl.DocumentTargets.Add(documentTarget);

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

Limitations

Read only.