# IFormattedText.EditableRegions Property

> Gets a collection of all editable regions in the text part. The property's value is an object of the type EditableRegionCollection.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 25.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.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 Server > Reference > TXTextControl > IFormattedText.EditableRegions Property
- **465 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/iformattedtext/editableregions-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/iformattedtext/editableregions-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/iformattedtext/editableregions-property/llms-full.txt

---

### Description

Gets a collection of all editable regions in the text part. The property's value is an object of the type [EditableRegionCollection](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/editableregioncollection/llms-full.txt).

### Syntax

```csharp
EditableRegionCollection EditableRegions { get; }
```

```vbnet
ReadOnly Property EditableRegions As EditableRegionCollection
```

### Examples

The following example applies bold formatting through the iformatted text's selection by using `IFormattedText.EditableRegions`.

```csharp
Selection formattedSelection = iFormattedText.Selection;
formattedSelection.Bold = true;
iFormattedText.Selection = formattedSelection;

foreach (EditableRegion editableRegion in iFormattedText.EditableRegions)
{
    Console.WriteLine(editableRegion.HighlightMode);
}
```

```vbnet
Dim formattedSelection As Selection = iFormattedText.Selection
formattedSelection.Bold = True
iFormattedText.Selection = formattedSelection

For Each editableRegion As EditableRegion In iFormattedText.EditableRegions
    Console.WriteLine(editableRegion.HighlightMode)
Next
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [IFormattedText.Drawings Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/iformattedtext/drawings-property/llms-full.txt)
- **Next:** [IFormattedText.Find Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/iformattedtext/find-method/llms-full.txt)
