TX Text Control .NET Server

Javascript: TXTextControl.AddResult Enumeration

Enumeration|Introduced in 26.0

Description

Specifies the result when a subtextpart has been added to the document. The object has the following properties:

Members

MemberDescription
ErrorAn unexpected error has occurred.
SuccessfulThe subtextpart has successfully been inserted.
NoSelectionThe subtextpart wasn't inserted because there is no selection.
SelectionTooComplexThe subtextpart wasn't inserted because the selection is too complex. It is not a continuous sequence of characters.
PositionInvalidThe subtextpart wasn't inserted because the specified position values are invalid. Invalid start and / or length values have been specified.
AlreadyExistsThe subtextpart wasn't inserted because it already exists.
OverlappingThe subtextpart wasn't inserted because it overlaps with an existing textpart.
CombinedThe 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.

Examples

The following example uses TXTextControl.AddResult.Error (an unexpected error has occurred.) in a document-editing workflow.

const value = TXTextControl.AddResult.Error;
console.log("An unexpected error has occurred.", value);