TX Text Control .NET Server

AddResult Enumeration

Enumeration|Introduced in 30.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.Core.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXTextControl.Core.dll
Install
dotnet add package TXTextControl.TextControl.Core.SDK .NET 8 and later. For .NET Framework, reference TXTextControl.dll from the setup.
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.dll

Description

Specifies the result when a comment has been added to the document.

Syntax

public enum CommentCollection.AddResult

Members

MemberValueDescription
Error0An unexpected error has occurred.
NoSelection2The comment input control was't opened or the comment wasn't inserted because there is no selection.
PositionInvalid4The comment wasn't inserted because the specified position values are invalid. Invalid start and/or length values have been specified.
SelectionTooComplex3The comment input control was't opened or the comment wasn't inserted because the selection is too complex. It is not a continuous sequence of characters.
Successful1The comment input control has been opened or the comment has successfully been inserted.

Examples

The following example selects the Error value from the Add Result enumeration and uses it as a documented workflow choice.

CommentCollection.AddResult value = CommentCollection.AddResult.Error;
Console.WriteLine($"Using Add Result: {value}");