# MisspelledWordChangingEventArgs.Cancel Property

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

- **Product:** TX Spell .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 6.0
- **Namespace:** `TXTextControl.Proofing`
- **Package:** `TXTextControl.TXSpell.WinForms.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 Windows Forms > Reference > TXTextControl.Proofing > MisspelledWordChangingEventArgs.Cancel Property
- **409 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/misspelledwordchangingeventargs/cancel-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/misspelledwordchangingeventargs/cancel-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/misspelledwordchangingeventargs/cancel-property/llms-full.txt

---

### Description

Get or sets a value indicating whether the changing operation for the current [misspelled word](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/misspelledwordchangingeventargs/misspelledword-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 `MisspelledWordChangingEventArgs.Cancel` to configure cancel as part of the misspelled word changing event args workflow. The configured value is checked before the workflow continues.

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

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

---

## Nearby

- **Previous:** [MisspelledWordChangingEventArgs Class](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/misspelledwordchangingeventargs/llms-full.txt)
- **Next:** [MisspelledWordChangingEventArgs.CorrectedWord Property](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/misspelledwordchangingeventargs/correctedword-property/llms-full.txt)
