# EditableRegionCollection.GetItems Method

> Gets all editable regions at the current text input position. The method returns null, if there is no region at the current input position.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Method
- **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.GetItems Method
- **636 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/editableregioncollection/getitems-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/editableregioncollection/getitems-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/editableregioncollection/getitems-method/llms-full.txt

---

### Description

Gets all editable regions at the current text input position. The method returns null, if there is no region at the current input position.

### Syntax

```csharp
public EditableRegion[] GetItems();
```

```vbnet
Public Function GetItems() As EditableRegion()
```

### Return Value

The return value is null, if there is no editable region at the current input position. Otherwise, it is an array of objects of the type [EditableRegion](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/editableregion/llms-full.txt).

### Examples

The following example works with editable regions in the current document by using `EditableRegionCollection.GetItems`.

```csharp
textControl.Text = "Customer: Contoso Ltd.";
textControl.Select(10, 12);
EditableRegionCollection editableRegionCollection = textControl.EditableRegions;
editableRegionCollection.Add(new EditableRegion("ReviewTeam", 100));

EditableRegion[] results = editableRegionCollection.GetItems();
foreach (EditableRegion editableRegion in results)
{
    Console.WriteLine(editableRegion);
}
```

```vbnet
textControl.Text = "Customer: Contoso Ltd."
textControl.Select(10, 12)
Dim editableRegionCollection As EditableRegionCollection = textControl.EditableRegions
editableRegionCollection.Add(New EditableRegion("ReviewTeam", 100))

Dim results As EditableRegion() = editableRegionCollection.GetItems()
For Each editableRegion As EditableRegion In results
    Console.WriteLine(editableRegion)
Next
```

---

## Nearby

- **Previous:** [EditableRegionCollection.GetItem Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/editableregioncollection/getitem-method/llms-full.txt)
- **Next:** [EditableRegionCollection.IsSynchronized Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/editableregioncollection/issynchronized-property/llms-full.txt)
