# SpellingCorrectionUIProvider.StateManager.CurrentWordToCorrect Property

> Gets an object of type TXTextControl.MisspelledWord or IncorrectWord and represents that current word to correct which is currently handled by the SpellingCorrectionUIProvider. It is redetermined on every invocation of SetCurrent, IsOptionsSetting or the TXSpell.SpellingCorrectionUIProvider.CorrectionHandler methods (AddToDictionary(), Change(string correctedWord), ChangeAll(string correctedWord), Delete(), Ignore(), IgnoreAll()). Changes on this property lead to an update of the Mode property. If the source of the word to correct is an object of type TXTextControl.TextControl, the CurrentIFormattedText property is updated as well.

- **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 > SpellingCorrectionUIProvider.StateManager.CurrentWordToCorrect Property
- **737 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/spellingcorrectionuiprovider-statemanager/currentwordtocorrect-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/spellingcorrectionuiprovider-statemanager/currentwordtocorrect-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/spellingcorrectionuiprovider-statemanager/currentwordtocorrect-property/llms-full.txt

---

### Description

Gets an object of type `TXTextControl.MisspelledWord` or [IncorrectWord](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/incorrectword/llms-full.txt) and represents that current word to correct which is currently handled by the [SpellingCorrectionUIProvider](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspell/spellingcorrectionuiprovider-property/llms-full.txt). It is redetermined on every invocation of [SetCurrent](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/spellingcorrectionuiprovider-statemanager/setcurrent-method/llms-full.txt), [IsOptionsSetting](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/spellingcorrectionuiprovider-statemanager/isoptionssettings-property/llms-full.txt) or the [TXSpell.SpellingCorrectionUIProvider.CorrectionHandler](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/spellingcorrectionuiprovider/correctionhandling-property/llms-full.txt) methods ([AddToDictionary()](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/spellingcorrectionuiprovider-correctionhandler/addtodictionary-method/llms-full.txt), [Change(string correctedWord)](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/spellingcorrectionuiprovider-correctionhandler/change-method/llms-full.txt), [ChangeAll(string correctedWord)](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/spellingcorrectionuiprovider-correctionhandler/changeall-method/llms-full.txt), [Delete()](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/spellingcorrectionuiprovider-correctionhandler/delete-method/llms-full.txt), [Ignore()](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/spellingcorrectionuiprovider-correctionhandler/ignore-method/llms-full.txt), [IgnoreAll()](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/spellingcorrectionuiprovider-correctionhandler/ignoreall-method/llms-full.txt)). Changes on this property lead to an update of the [Mode](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/spellingcorrectionuiprovider-statemanager/mode-property/llms-full.txt) property. If the source of the word to correct is an object of type `TXTextControl.TextControl`, the [CurrentIFormattedText](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/spellingcorrectionuiprovider-statemanager/currentiformattedtext-property/llms-full.txt) property is updated as well.

### Syntax

```csharp
public object CurrentWordToCorrect { get; }
```

```vbnet
Public ReadOnly Property CurrentWordToCorrect As Object
```

### Examples

The following example includes the current word to correct value in application diagnostics. The created object is then available to the surrounding document workflow.

```csharp
Console.WriteLine($"Current Word To Correct: {stateManager.CurrentWordToCorrect}");
Console.WriteLine("State Manager is ready for use.");
```

```vbnet
Console.WriteLine($"Current Word To Correct: {stateManager.CurrentWordToCorrect}")
Console.WriteLine("State Manager is ready for use.")
```

### Limitations

Read only.

---

## Nearby

- **Previous:** [SpellingCorrectionUIProvider.StateManager.CurrentTextControl Property](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/spellingcorrectionuiprovider-statemanager/currenttextcontrol-property/llms-full.txt)
- **Next:** [SpellingCorrectionUIProvider.StateManager.IsOptionsSettings Property](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/spellingcorrectionuiprovider-statemanager/isoptionssettings-property/llms-full.txt)
