# IncorrectWordChangingEventArgs.CorrectedWord Property

> Gets or sets the new word that replaces the text of the incorrect word.

- **Product:** TX Spell .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **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
- **Path:** TX Spell .NET for WPF > Reference > TXTextControl.Proofing > IncorrectWordChangingEventArgs.CorrectedWord Property
- **535 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/incorrectwordchangingeventargs/correctedword-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/incorrectwordchangingeventargs/correctedword-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/incorrectwordchangingeventargs/correctedword-property/llms-full.txt

---

### Description

Gets or sets the new word that replaces the [text](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/spelledword/text-property/llms-full.txt) of the [incorrect word](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/incorrectword/llms-full.txt).

### Syntax

```csharp
public string CorrectedWord { get; set; }
```

```vbnet
Public Property CorrectedWord As String
```

### Examples

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

```csharp
incorrectWordChangingEventArgs.CorrectedWord = "Quarterly report";
if (!string.IsNullOrWhiteSpace(incorrectWordChangingEventArgs.CorrectedWord))
{
    Console.WriteLine($"Corrected Word: {incorrectWordChangingEventArgs.CorrectedWord}");
}
```

```vbnet
incorrectWordChangingEventArgs.CorrectedWord = "Quarterly report"
If Not String.IsNullOrWhiteSpace(incorrectWordChangingEventArgs.CorrectedWord) Then
    Console.WriteLine($"Corrected Word: {incorrectWordChangingEventArgs.CorrectedWord}")
End If
```

### Remarks

This property returns an exception, if the current [IncorrectWordChangingEventArgs.Type](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/incorrectwordchangingeventargs/type-property/llms-full.txt) property is not type of [Replace](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/txspell-changetype/enumeration/llms-full.txt).

---

## Nearby

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