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 a comment has been added to the document.
Syntax
public enum CommentCollection.AddResultPublic Enum CommentCollection.AddResultMembers
| Member | Value | Description |
|---|---|---|
| Error | 0 | An unexpected error has occurred. |
| NoSelection | 2 | The comment input control was't opened or the comment wasn't inserted because there is no selection. |
| PositionInvalid | 4 | The comment wasn't inserted because the specified position values are invalid. Invalid start and/or length values have been specified. |
| SelectionTooComplex | 3 | The 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. |
| Successful | 1 | The 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}");Dim value As CommentCollection.AddResult = CommentCollection.AddResult.Error
Console.WriteLine($"Using Add Result: {value}")