# EditableRegionCollection Class

> Contains all editable regions in the main text or another part of a document. It is a collection of objects of the type EditableRegion. A collection object can be obtained with the TextControl.EditableRegions, the HeaderFooter.EditableRegions or the TextFrame.EditableRegions property. The EditableRegionCollection class implements the IEnumerable and the ICollection interfaces. When the EditMode property of a Text Control has been set to ReadAndSelect, editable regions can still be edited, either by everyone or depending on the UserName property by a certain user.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Class
- **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
- **Implements:** `System.Collections.ICollection`, `System.Collections.IEnumerable`
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl > EditableRegionCollection Class
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/editableregioncollection/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/editableregioncollection/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/editableregioncollection/llms-full.txt

---

## On This Page

- [Description](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/editableregioncollection/#description)
- [Syntax](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/editableregioncollection/#syntax)
- [Examples](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/editableregioncollection/#examples)
- [Members](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/editableregioncollection/#members)

---

## In This Section

- [EditableRegionCollection.Add Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/editableregioncollection/add-method/llms.txt): Adds a new editable region to the document. Its position is defined through the EditableRegion.Start and EditableRegion.Length properties. If the editable region's length is zero, the current text selection is used to define the position.
- [EditableRegionCollection.AddResult Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/editableregioncollection/addresult-enumeration/llms.txt): Specifies the result when an editable region has been added to the document.
- [EditableRegionCollection.CopyTo Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/editableregioncollection/copyto-method/llms.txt): Copies the elements of the collection to an array, starting at a particular index.
- [EditableRegionCollection.Count Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/editableregioncollection/count-property/llms.txt): Gets the number of elements contained in the collection.
- [EditableRegionCollection.GetEnumerator Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/editableregioncollection/getenumerator-method/llms.txt): Returns an enumerator that can be used to iterate through the collection.
- [EditableRegionCollection.GetItem Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/editableregioncollection/getitem-method/llms.txt): Gets the editable region with the specified id. The method returns null, if such a region does not exist. If more than one region with this id exists, the first found region is returned.
- [EditableRegionCollection.GetItems Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/editableregioncollection/getitems-method/llms.txt): Gets all editable regions at the current text input position. The method returns null, if there is no region at the current input position.
- [EditableRegionCollection.IsSynchronized Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/editableregioncollection/issynchronized-property/llms.txt): Returns true if the collection is designed to be thread safe, otherwise, it returns false.
- [EditableRegionCollection.Item Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/editableregioncollection/item-property/llms.txt): Gets the editable region with the specified number from the collection. The number must be between 1 and Count. In C# this property is the indexer for the EditableRegionCollection class.
- [EditableRegionCollection.Remove Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/editableregioncollection/remove-method/llms.txt): Removes an editable region from the collection. The region's text is not removed.
- [EditableRegionCollection.SyncRoot Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/editableregioncollection/syncroot-property/llms.txt): Gets an object that can be used to synchronize access to the collection.

---

## Nearby

- **Previous:** [EditableRegion.UserName Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/editableregion/username-property/llms.txt)
- **Next:** [EditableRegionCollection.Add Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/editableregioncollection/add-method/llms.txt)
