AutoGenerationType Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesCore. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.dll
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; }Public ReadOnly Property AutoGenerationType As AutoGenerationTypeMembers
| Value | Description |
|---|---|
| None | The document target is not automatically generated. |
| TableOfContents | The 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.");Dim documentTarget As New DocumentTarget("CustomerDetails")
textControl.DocumentTargets.Add(documentTarget)
Console.WriteLine($"Auto Generation Type: {documentTarget.AutoGenerationType}")
Console.WriteLine("Document Target is ready for use.")Limitations
Read only.