# TrackedChangeCollection Class

> Contains all tracked changes in the main text or another part of a document. It is a collection of objects of the type TrackedChange. A collection object can be obtained with the TextControl.TrackedChanges, the HeaderFooter.TrackedChanges or the TextFrame.TrackedChanges property. The TrackedChangeCollection class implements the IEnumerable and the ICollection interfaces. A TrackedChange object represents a change of the document after someone has reworked the document. After tracking changes has been turned on with the IsTrackChangesEnabled property, a TextControl marks up new changes made to the document.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Class
- **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
- **Implements:** `System.Collections.ICollection`, `System.Collections.IEnumerable`
- **Path:** TX Text Control .NET Server > Reference > TXTextControl > TrackedChangeCollection Class
- **1071 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/trackedchangecollection/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/trackedchangecollection/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/trackedchangecollection/llms-full.txt

---

### Description

Contains all tracked changes in the main text or another part of a document. It is a collection of objects of the type [TrackedChange](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/trackedchange/llms-full.txt). A collection object can be obtained with the [TextControl.TrackedChanges](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/trackedchanges-property/llms-full.txt), the [HeaderFooter.TrackedChanges](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/headerfooter/trackedchanges-property/llms-full.txt) or the [TextFrame.TrackedChanges](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/textframe/trackedchanges-property/llms-full.txt) property. The TrackedChangeCollection class implements the IEnumerable and the ICollection interfaces. A TrackedChange object represents a change of the document after someone has reworked the document. After tracking changes has been turned on with the [IsTrackChangesEnabled](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/istrackchangesenabled-property/llms-full.txt) property, a [TextControl](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/llms-full.txt) marks up new changes made to the document.

### Syntax

```csharp
public sealed class TrackedChangeCollection : ICollection, IEnumerable
```

```vbnet
Public NotInheritable Class TrackedChangeCollection
    Implements ICollection, IEnumerable
```

### Examples

The following example works with tracked changes in the current document. The created object is then available to the surrounding document workflow.

```csharp
TrackedChangeCollection trackedChangeCollection = textControl.TrackedChanges;
Console.WriteLine("Tracked Change Collection is ready for use.");
```

```vbnet
Dim trackedChangeCollection As TrackedChangeCollection = textControl.TrackedChanges
Console.WriteLine("Tracked Change Collection is ready for use.")
```

---

## In This Section

- [TrackedChangeCollection.CopyTo Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/trackedchangecollection/copyto-method/llms-full.txt): Copies the elements of the collection to an array, starting at a particular index.
- [TrackedChangeCollection.Count Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/trackedchangecollection/count-property/llms-full.txt): Gets the number of elements contained in the collection.
- [TrackedChangeCollection.GetEnumerator Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/trackedchangecollection/getenumerator-method/llms-full.txt): Returns an enumerator that can be used to iterate through the collection.
- [TrackedChangeCollection.GetItem Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/trackedchangecollection/getitem-method/llms-full.txt): Gets a particular item from the collection.
- [TrackedChangeCollection.IsSynchronized Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/trackedchangecollection/issynchronized-property/llms-full.txt): Returns true if the collection is designed to be thread safe, otherwise, it returns false.
- [TrackedChangeCollection.Item Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/trackedchangecollection/item-property/llms-full.txt): Gets the change with the specified number from the collection. The number must be between 1 and Count. In C# this property is the indexer for the TrackedChangeCollection class.
- [TrackedChangeCollection.Remove Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/trackedchangecollection/remove-method/llms-full.txt): Removes a tracked change from the collection. Depending on the accept parameter the change is either accepted or rejected. When a change is rejected, inserted text is removed and deleted text is reinserted.
- [TrackedChangeCollection.SyncRoot Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/trackedchangecollection/syncroot-property/llms-full.txt): Gets an object that can be used to synchronize access to the collection.

---

## Nearby

- **Previous:** [TrackedChange.UserName Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/trackedchange/username-property/llms-full.txt)
- **Next:** [TrackedChangeCollection.CopyTo Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/trackedchangecollection/copyto-method/llms-full.txt)
