AutoGenerationType Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
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; }Public ReadOnly Property AutoGenerationType As AutoGenerationTypeMembers
| Value | Description |
|---|---|
| None | The document link is not automatically generated. |
| TableOfContents | The 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.");Dim target As New DocumentTarget("CustomerDetails")
textControl.DocumentTargets.Add(target)
Dim documentLink As New DocumentLink("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.