# TrackedChangeCollection.GetItem Method

> Gets a particular item from the collection.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 26.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 > TrackedChangeCollection.GetItem Method
- **640 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/trackedchangecollection/getitem-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/trackedchangecollection/getitem-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/trackedchangecollection/getitem-method/llms-full.txt

---

### Description

Gets a particular item from the collection.

### Syntax

#### GetItem()

Gets the change at the current text input position. If there is more than one change at the current input position the innermost change is returned.

```csharp
public TrackedChange GetItem();
```

```vbnet
Public Function GetItem() As TrackedChange
```

#### GetItem(bool)

Gets the next or the previous change in the textflow. The search begins at the current text input position.

```csharp
public TrackedChange GetItem(bool next);
```

```vbnet
Public Function GetItem([next] As Boolean) As TrackedChange
```

| Parameter | Description |
|---|---|
| next | If this parameter is true, the next change in the textflow is returned. If this parameter is false, the previous change in the textflow is returned. The next or the previous change is returned independent whether there is a change at the current text input position. |

### Return Value

The return value is null, if a change could not be found. Otherwise, it is an object of the type [TrackedChange](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/trackedchange/llms-full.txt).

### Examples

The following example retrieves and selects the next tracked change in text flow.

```csharp
TrackedChangeCollection changes = textControl.TrackedChanges;
TrackedChange nextChange = changes.GetItem(true);
nextChange?.Select();
```

```vbnet
Dim changes As TrackedChangeCollection = textControl.TrackedChanges
Dim nextChange As TrackedChange = changes.GetItem(True)
If nextChange IsNot Nothing Then nextChange.Select()
```

---

## Nearby

- **Previous:** [TrackedChangeCollection.GetEnumerator Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/trackedchangecollection/getenumerator-method/llms-full.txt)
- **Next:** [TrackedChangeCollection.IsSynchronized Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/trackedchangecollection/issynchronized-property/llms-full.txt)
