# MisspelledWordChangingEventArgs.CorrectedWord Property

> Gets or sets the new word that replaces the text of an object of type TXTextControl.MisspelledWord.

- **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 > MisspelledWordChangingEventArgs.CorrectedWord Property
- **512 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/misspelledwordchangingeventargs/correctedword-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/misspelledwordchangingeventargs/correctedword-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/misspelledwordchangingeventargs/correctedword-property/llms-full.txt

---

### Description

Gets or sets the new word that replaces the text of an object of type `TXTextControl.MisspelledWord`.

### Syntax

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

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

### Examples

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

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

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

### Remarks

That property returns an exception, if the current [MisspelledWordChangingEventArgs.Type](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/misspelledwordchangingeventargs/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:** [MisspelledWordChangingEventArgs.Cancel Property](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/misspelledwordchangingeventargs/cancel-property/llms-full.txt)
- **Next:** [MisspelledWordChangingEventArgs.IFormattedText Property](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/misspelledwordchangingeventargs/iformattedtext-property/llms-full.txt)
