TX Text Control .NET for WPF

AddResult Enumeration

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

Description

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

Syntax

public enum SubTextPartCollection.AddResult

Members

MemberValueDescription
AlreadyExists5The subtextpart wasn't inserted because it already exists.
Combined8The subtextpart was inserted and combined with an existing one. A subtextpart is combined with an existing one, when it immediately follows it and has the same name and id.
Error0An unexpected error has occurred.
NoSelection2The subtextpart wasn't inserted because there is no selection.
Overlapping7The subtextpart wasn't inserted because it overlaps with an existing textpart.
PositionInvalid4The subtextpart wasn't inserted because the specified position values are invalid. Invalid start and/or length values have been specified.
SelectionTooComplex3The subtextpart wasn't inserted because the selection is too complex. It is not a continuous sequence of characters.
Successful1The subtextpart 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.

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