# SpellingCorrectionUIProvider.CorrectionHandler.CheckCorrectedWord Method

> Returns a value whether the specified word was found in one of the current selected suggestion dictionaries or not.

- **Product:** TX Spell .NET for Windows Forms
- **Section:** Reference
- **Kind:** Method
- **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.CorrectionHandler.CheckCorrectedWord Method
- **783 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/spellingcorrectionuiprovider-correctionhandler/checkcorrectedword-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/spellingcorrectionuiprovider-correctionhandler/checkcorrectedword-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/spellingcorrectionuiprovider-correctionhandler/checkcorrectedword-method/llms-full.txt

---

### Description

Returns a value whether the specified word was found in one of the [current selected suggestion dictionaries](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/spellingcorrectionuiprovider-suggestiondictionarieshandler/selectedsuggestiondictionaries-property/llms-full.txt) or not.

### Syntax

```csharp
public bool CheckCorrectedWord(string correctedWord, out string messageText);
```

```vbnet
Public Function CheckCorrectedWord(correctedWord As String, ByRef messageText As String) As Boolean
```

### Parameters

| Parameter | Description |
|---|---|
| correctedWord | The specified word to check. |
| messageText | If the specified word was not found in one of the [current selected suggestion dictionaries](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/spellingcorrectionuiprovider-suggestiondictionarieshandler/selectedsuggestiondictionaries-property/llms-full.txt), the parameter is set to a message which informs the user about the result of this request. Otherwise it is set to an empty string. |

### Return Value

True if the specified word was found in one of the [current selected suggestion dictionaries](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/spellingcorrectionuiprovider-suggestiondictionarieshandler/selectedsuggestiondictionaries-property/llms-full.txt). Otherwise false.

### Examples

The following example uses Check Corrected Word in a focused Correction Handler workflow.

```csharp
string messageText = "Quarterly results";
if (correctionHandler.CheckCorrectedWord("Quarterly report", out messageText))
{
    Console.WriteLine("Check Corrected Word completed successfully.");
}
```

```vbnet
Dim messageText As String = "Quarterly results"
If correctionHandler.CheckCorrectedWord("Quarterly report", messageText) Then
    Console.WriteLine("Check Corrected Word completed successfully.")
End If
```

### Remarks

This method is only enabled if the [SpellingCorrectionUIProvider's mode](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/spellingcorrectionuiprovider-statemanager/mode-property/llms-full.txt) is set to [SuggestionsCreated](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspell-spellingcorrectionmode/enumeration/llms-full.txt) or [WordToCorrectEditing](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspell-spellingcorrectionmode/enumeration/llms-full.txt).

---

## Nearby

- **Previous:** [SpellingCorrectionUIProvider.CorrectionHandler.ChangeAll Method](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/spellingcorrectionuiprovider-correctionhandler/changeall-method/llms-full.txt)
- **Next:** [SpellingCorrectionUIProvider.CorrectionHandler.Delete Method](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/spellingcorrectionuiprovider-correctionhandler/delete-method/llms-full.txt)
