# IncorrectWordChangingEventArgs Class

> The IncorrectWordChangingEventArgs class provides data for the TXSpellChecker.IncorrectWordChanging event in TX Spell .NET for Windows Forms and WPF.

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

---

### Description

The IncorrectWordChangingEventArgs class provides data for the TXSpellChecker.IncorrectWordChanging event in TX Spell .NET for [Windows Forms](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspellchecker/incorrectwordchanging-event/llms-full.txt) and [WPF](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/txspellchecker/incorrectwordchanging-event/llms-full.txt).

### Syntax

```csharp
public sealed class IncorrectWordChangingEventArgs : EventArgs
```

```vbnet
Public NotInheritable Class IncorrectWordChangingEventArgs
    Inherits EventArgs
```

### Examples

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

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

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

---

## In This Section

- [IncorrectWordChangingEventArgs.Cancel Property](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/incorrectwordchangingeventargs/cancel-property/llms-full.txt): Get or sets a value indicating whether the changing operation for the current incorrect word should be canceled.
- [IncorrectWordChangingEventArgs.CorrectedText Property](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/incorrectwordchangingeventargs/correctedtext-property/llms-full.txt): Gets the complete text including the replaced incorrect words with the corrected words.
- [IncorrectWordChangingEventArgs.CorrectedWord Property](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/incorrectwordchangingeventargs/correctedword-property/llms-full.txt): Gets or sets the new word that replaces the text of the incorrect word.
- [IncorrectWordChangingEventArgs.IncorrectWord Property](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/incorrectwordchangingeventargs/incorrectword-property/llms-full.txt): Gets the incorrect word that is changed.
- [IncorrectWordChangingEventArgs.SourceText Property](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/incorrectwordchangingeventargs/sourcetext-property/llms-full.txt): Gets the complete text without the replaced incorrect words.
- [IncorrectWordChangingEventArgs.Type Property](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/incorrectwordchangingeventargs/type-property/llms-full.txt): Gets the type that defines how the incorrect word is changed.
- [IncorrectWordChangingEventArgs.WillBeDuplicate Property](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/incorrectwordchangingeventargs/willbeduplicate-property/llms-full.txt): Gets a value specifying whether replacing the text of the current incorrect word would result in a conversion to a duplicate incorrect word.

---

## Nearby

- **Previous:** [IncorrectWord.Language Property](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/incorrectword/language-property/llms-full.txt)
- **Next:** [IncorrectWordChangingEventArgs.Cancel Property](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/incorrectwordchangingeventargs/cancel-property/llms-full.txt)
