# EditableRegionCollection.AddResult Enumeration

> Specifies the result when an editable region has been added to the document.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Enumeration
- **Introduced:** 25.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl > EditableRegionCollection.AddResult Enumeration
- **632 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/editableregioncollection/addresult-enumeration/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/editableregioncollection/addresult-enumeration/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/editableregioncollection/addresult-enumeration/llms-full.txt

---

### Description

Specifies the result when an editable region has been added to the document.

### Syntax

```csharp
public enum EditableRegionCollection.AddResult
```

```vbnet
Public Enum EditableRegionCollection.AddResult
```

### Members

| Member | Value | Description |
|---|---|---|
| Combined | 8 | The editable region was inserted and combined with an existing one. An editable region is combined with an existing one, when it overlaps or immediately follows it and has the same user name and id. |
| Error | 0 | An unexpected error has occurred. |
| NoSelection | 2 | The editable region wasn't inserted because there is no selection. |
| PositionInvalid | 4 | The editable region wasn't inserted because the specified position values are invalid. Invalid start and/or length values have been specified. |
| SelectionTooComplex | 3 | The editable region wasn't inserted because the selection is too complex. It is not a continuous sequence of characters. |
| Successful | 1 | The editable region 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.

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

```vbnet
Dim value As EditableRegionCollection.AddResult = EditableRegionCollection.AddResult.Error
Console.WriteLine($"Using Add Result: {value}")
```

---

## Nearby

- **Previous:** [EditableRegionCollection.Add Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/editableregioncollection/add-method/llms-full.txt)
- **Next:** [EditableRegionCollection.CopyTo Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/editableregioncollection/copyto-method/llms-full.txt)
