# TextViewGenerator.CannotTrackChange Event

> Determines how to handle a change of the document that cannot be added to the list of tracked changes. Complex table layout changes, such as deleting a table column or merging table cells cannot be tracked. The default handling does not perform the change. The event handler receives an argument of type CannotTrackChangeEventArgs containing data related to this event. Using the CannotTrackChangeEventArgs.Cancel property the default handling can be changed.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Event
- **Introduced:** 26.0
- **Namespace:** `TXTextControl.ServerVisualisation`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Server.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.SDK` (assembly `TXTextControl.Server.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.Server.dll` from the setup
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.ServerVisualization > TextViewGenerator.CannotTrackChange Event
- **398 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/cannottrackchange-event/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/cannottrackchange-event/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/cannottrackchange-event/llms-full.txt

---

### Description

Determines how to handle a change of the document that cannot be added to the list of tracked changes. Complex table layout changes, such as deleting a table column or merging table cells cannot be tracked. The default handling does not perform the change. The event handler receives an argument of type [CannotTrackChangeEventArgs](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/cannottrackchangeeventargs/llms-full.txt) containing data related to this event. Using the [CannotTrackChangeEventArgs.Cancel](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/cannottrackchangeeventargs/cancel-property/llms-full.txt) property the default handling can be changed.

### Syntax

```csharp
public event CannotTrackChangeEventHandler CannotTrackChange;
```

```vbnet
Public Event CannotTrackChange As CannotTrackChangeEventHandler
```

### Examples

The following example records useful context when cannot track change occurs.

```csharp
textViewGenerator.CannotTrackChange += (sender, e) =>
{
    Console.WriteLine($"Handled: {e.Handled}");
};
```

```vbnet
AddHandler textViewGenerator.CannotTrackChange,
    Sub(sender, e)
        Console.WriteLine($"Handled: {e.Handled}")
    End Sub
```

---

## Nearby

- **Previous:** [TextViewGenerator.CanEditFormFields Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/caneditformfields-property/llms-full.txt)
- **Next:** [TextViewGenerator.CanParagraphFormat Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/canparagraphformat-property/llms-full.txt)
