# IncorrectWordChangingEventArgs.Cancel Property

> Get or sets a value indicating whether the changing operation for the current incorrect word should be canceled.

- **Product:** TX Spell .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 6.0
- **Namespace:** `TXTextControl.Proofing`
- **Package:** `TXTextControl.TXSpell.WPF.SDK` (assembly `TXSpell.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TXSpell.Core.SDK` (assembly `TXSpell.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXSpell.dll` from the setup
- **Path:** TX Spell .NET for WPF > Reference > TXTextControl.Proofing > IncorrectWordChangingEventArgs.Cancel Property
- **406 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/incorrectwordchangingeventargs/cancel-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/incorrectwordchangingeventargs/cancel-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/incorrectwordchangingeventargs/cancel-property/llms-full.txt

---

### Description

Get or sets a value indicating whether the changing operation for the current [incorrect word](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/incorrectwordchangingeventargs/incorrectword-property/llms-full.txt) should be canceled.

### Syntax

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

```vbnet
Public Property Cancel As Boolean
```

### Examples

The following example uses `IncorrectWordChangingEventArgs.Cancel` to configure cancel as part of the incorrect word changing event args workflow. The configured value is checked before the workflow continues.

```csharp
incorrectWordChangingEventArgs.Cancel = true;
if (incorrectWordChangingEventArgs.Cancel)
{
    Console.WriteLine("Incorrect Word Changing Event Args: Cancel is enabled.");
}
```

```vbnet
incorrectWordChangingEventArgs.Cancel = True
If incorrectWordChangingEventArgs.Cancel Then
    Console.WriteLine("Incorrect Word Changing Event Args: Cancel is enabled.")
End If
```

---

## Nearby

- **Previous:** [IncorrectWordChangingEventArgs Class](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/incorrectwordchangingeventargs/llms-full.txt)
- **Next:** [IncorrectWordChangingEventArgs.CorrectedText Property](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/incorrectwordchangingeventargs/correctedtext-property/llms-full.txt)
