# CannotTrackChangeEventArgs.Cancel Property

> 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.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **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
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl > CannotTrackChangeEventArgs.Cancel Property
- **318 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/cannottrackchangeeventargs/cancel-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/cannottrackchangeeventargs/cancel-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/cannottrackchangeeventargs/cancel-property/llms-full.txt

---

### Description

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.

### Syntax

```csharp
public bool Cancel { get; set; }
```

```vbnet
Public Property Cancel() As Boolean
```

### Examples

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

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

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

---

## Nearby

- **Previous:** [CannotTrackChangeEventArgs Class](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/cannottrackchangeeventargs/llms-full.txt)
- **Next:** [CannotTrackChangeEventArgs.DefaultMessage Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/cannottrackchangeeventargs/defaultmessage-property/llms-full.txt)
