Javascript: SubTextPartCollection.AddResult Enumeration
Description
Specifies the result when a subtextpart has been added to the document.
Members
| Member | Description |
|---|---|
| Error | An unexpected error has occurred. |
| Successful | The subtextpart has successfully been inserted. |
| NoSelection | The subtextpart wasn't inserted because there is no selection. |
| SelectionTooComplex | The subtextpart wasn't inserted because the selection is too complex. It is not a continuous sequence of characters. |
| PositionInvalid | The subtextpart wasn't inserted because the specified position values are invalid. Invalid start and/or length values have been specified. |
| AlreadyExists | The subtextpart wasn't inserted because it already exists. |
| Overlapping | The subtextpart wasn't inserted because it overlaps with an existing textpart. |
| Combined | The 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.Subtextpartcollection.AddResult.Error (an unexpected error has occurred.) in a document-editing workflow.
const value = TXTextControl.Subtextpartcollection.AddResult.Error;
console.log("An unexpected error has occurred.", value);