# CannotTrackChangeEventArgs Class

> The CannotTrackChangeEventArgs class provides data for the CannotTrackChange event. This 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 shows a MessageBox asking the end-user whether the change of the document should be performed. Using the Handled and the Cancel property the default handling can be changed.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Class
- **Introduced:** 26.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Inherits:** `System.ComponentModel.CancelEventArgs`
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl > CannotTrackChangeEventArgs Class
- **703 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/cannottrackchangeeventargs/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/cannottrackchangeeventargs/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/cannottrackchangeeventargs/llms-full.txt

---

### Description

The CannotTrackChangeEventArgs class provides data for the [CannotTrackChange](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/cannottrackchange-event/llms-full.txt) event. This 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 shows a MessageBox asking the end-user whether the change of the document should be performed. Using the [Handled](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/cannottrackchangeeventargs/handled-property/llms-full.txt) and the [Cancel](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/cannottrackchangeeventargs/cancel-property/llms-full.txt) property the default handling can be changed.

### Syntax

```csharp
public class CannotTrackChangeEventArgs : CancelEventArgs
```

```vbnet
Public Class CannotTrackChangeEventArgs
    Inherits CancelEventArgs
```

### Examples

The following example uses `CannotTrackChangeEventArgs.Handled` while handling `CannotTrackChange`.

```csharp
textControl.CannotTrackChange += (_, e) =>
{
    e.Handled = true;
};
```

```vbnet
AddHandler textControl.CannotTrackChange,
    Sub(sender, e)
        e.Handled = True
    End Sub
```

---

## In This Section

- [CannotTrackChangeEventArgs.Cancel Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/cannottrackchangeeventargs/cancel-property/llms-full.txt): Gets or sets a value indicating whether the change of the document should be performed. If the property value is true, which is the default value, the operation is canceled. If the property value is false, the document is changed.
- [CannotTrackChangeEventArgs.DefaultMessage Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/cannottrackchangeeventargs/defaultmessage-property/llms-full.txt): Gets the default message for the user. If a subscriber does not handle the event, this message is displayed with a message box asking the end-user whether the change of the document should be performed.
- [CannotTrackChangeEventArgs.Handled Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/cannottrackchangeeventargs/handled-property/llms-full.txt): A subscriber can set this property to true to indicate that he has handled the event. In this case the default handling is suppressed. The default handling shows a MessageBox asking the end-user whether the change of the document should be performed. The default value of this property is false.

---

## Nearby

- **Previous:** [BinaryStreamType Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/binarystreamtype/enumeration/llms-full.txt)
- **Next:** [CannotTrackChangeEventArgs.Cancel Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/cannottrackchangeeventargs/cancel-property/llms-full.txt)
