# MisspelledWordChangingEventArgs Class

> The MisspelledWordChangingEventArgs class provides data for the TXSpellChecker.MisspelledWordChanging event in TXSpell for Windows Forms and WPF.

- **Product:** TX Spell .NET for Windows Forms
- **Section:** Reference
- **Kind:** Class
- **Introduced:** 3.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
- **Inherits:** `System.EventArgs`
- **Path:** TX Spell .NET for Windows Forms > Reference > TXTextControl.Proofing > MisspelledWordChangingEventArgs Class
- **820 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/misspelledwordchangingeventargs/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/misspelledwordchangingeventargs/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/misspelledwordchangingeventargs/llms-full.txt

---

### Description

The MisspelledWordChangingEventArgs class provides data for the TXSpellChecker.MisspelledWordChanging event in TXSpell for [Windows Forms](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspellchecker/misspelledwordchanging-event/llms-full.txt) and [WPF](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/txspellchecker/misspelledwordchanging-event/llms-full.txt).

### Syntax

```csharp
public sealed class MisspelledWordChangingEventArgs : EventArgs
```

```vbnet
Public NotInheritable Class MisspelledWordChangingEventArgs
    Inherits EventArgs
```

### Examples

The following example includes the cancel value from a Misspelled Word Changing Event Args object in application diagnostics. The created object is then available to the surrounding document workflow.

```csharp
Console.WriteLine($"Cancel: {misspelledWordChangingEventArgs.Cancel}");
Console.WriteLine("Misspelled Word Changing Event Args is ready for use.");
```

```vbnet
Console.WriteLine($"Cancel: {misspelledWordChangingEventArgs.Cancel}")
Console.WriteLine("Misspelled Word Changing Event Args is ready for use.")
```

---

## In This Section

- [MisspelledWordChangingEventArgs.Cancel Property](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/misspelledwordchangingeventargs/cancel-property/llms-full.txt): Get or sets a value indicating whether the changing operation for the current misspelled word should be canceled.
- [MisspelledWordChangingEventArgs.CorrectedWord Property](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/misspelledwordchangingeventargs/correctedword-property/llms-full.txt): Gets or sets the new word that replaces the text of an object of type TXTextControl.MisspelledWord.
- [MisspelledWordChangingEventArgs.IFormattedText Property](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/misspelledwordchangingeventargs/iformattedtext-property/llms-full.txt): Gets the object of type TXTextControl.IFormattedText where the object of type TXTextControl.MisspelledWord is changed.
- [MisspelledWordChangingEventArgs.MisspelledWord Property](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/misspelledwordchangingeventargs/misspelledword-property/llms-full.txt): Gets the object of type TXTextControl.MisspelledWord that is changed.
- [MisspelledWordChangingEventArgs.Type Property](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/misspelledwordchangingeventargs/type-property/llms-full.txt): Gets the type that defines how the object of type TXTextControl.MisspelledWord is changed.
- [MisspelledWordChangingEventArgs.WillBeDuplicate Property](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/misspelledwordchangingeventargs/willbeduplicate-property/llms-full.txt): Gets a value specifying whether replacing the text of the current misspelled word would result in a conversion to a duplicate misspelled word.

---

## Nearby

- **Previous:** [MenuItemClickedEventArgs.MenuItem Property](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/menuitemclickedeventargs/menuitem-property/llms-full.txt)
- **Next:** [MisspelledWordChangingEventArgs.Cancel Property](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/misspelledwordchangingeventargs/cancel-property/llms-full.txt)
