AddResult Enumeration
- Namespace
TXTextControl
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. WinForms. SDK
- Assembly
TXTextControl.dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. WinForms. SDK TXTextControl.from the setup.dll
Description
Specifies the result when an existing table of contents has been updated or a new table of contents has been added to the document.
Syntax
public enum TableOfContentsCollection.AddResultPublic Enum TableOfContentsCollection.AddResultMembers
| Member | Value | Description |
|---|---|---|
| ContentNotFound | 1 | The table of contents could not be inserted or updated because it has no content. A paragraph with a structure level as specified through the TableOfContents.MinimumStructureLevel and TableOfContents.MaximumStructureLevel properties could not be found. |
| Error | 0 | An unexpected error has occurred or the current text input position is a position where a table of contents cannot be inserted. Tables of content cannot be inserted in a TextField or a HypertextLink. Furthermore, tables of contents cannot be nested. |
| Successful | 2 | The table of contents has successfully been inserted or updated. |
Examples
The following example selects the Error value from the Add Result enumeration and uses it as a documented workflow choice.
TableOfContentsCollection.AddResult value = TableOfContentsCollection.AddResult.Error;
Console.WriteLine($"Using Add Result: {value}");Dim value As TableOfContentsCollection.AddResult = TableOfContentsCollection.AddResult.Error
Console.WriteLine($"Using Add Result: {value}")