# SpellingCorrectionUIProvider.CorrectionHandler.AddToDictionary Method

> Adds the text of the current word to correct to all user dictionaries of the current dictionary collection where the IsEditable property is set to true and the language property corresponds to the TXTextControl.MisspelledWord.Culture or incorrect word's language property. Furthermore the word is removed from all corresponding collections (TXTextControl.MisspelledWordCollection/ IncorrectWordCollection).

- **Product:** TX Spell .NET for WPF
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 6.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 > SpellingCorrectionUIProvider.CorrectionHandler.AddToDictionary Method
- **548 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/spellingcorrectionuiprovider-correctionhandler/addtodictionary-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/spellingcorrectionuiprovider-correctionhandler/addtodictionary-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/spellingcorrectionuiprovider-correctionhandler/addtodictionary-method/llms-full.txt

---

### Description

Adds the text of the [current word to correct](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/spellingcorrectionuiprovider-statemanager/currentwordtocorrect-property/llms-full.txt) to all [user dictionaries](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/userdictionary/llms-full.txt) of the current [dictionary collection](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/txspell/dictionaries-property/llms-full.txt) where the [IsEditable](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/userdictionary/iseditable-property/llms-full.txt) property is set to true and the [language](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/dictionary/language-property/llms-full.txt) property corresponds to the `TXTextControl.MisspelledWord.Culture` or [incorrect word's language](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/incorrectword/language-property/llms-full.txt) property. Furthermore the word is removed from all corresponding collections (`TXTextControl.MisspelledWordCollection`/ [IncorrectWordCollection](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/txspell/incorrectwords-property/llms-full.txt)).

### Syntax

```csharp
public void AddToDictionary();
```

```vbnet
Public Sub AddToDictionary()
```

### Examples

The following example uses Add To Dictionary in a focused Correction Handler workflow. The created object is then available to the surrounding document workflow.

```csharp
correctionHandler.AddToDictionary();
Console.WriteLine("Correction Handler is ready for use.");
```

```vbnet
correctionHandler.AddToDictionary()
Console.WriteLine("Correction Handler is ready for use.")
```

### Remarks

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

---

## Nearby

- **Previous:** [SpellingCorrectionUIProvider.CorrectionHandler Class](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/spellingcorrectionuiprovider-correctionhandler/llms-full.txt)
- **Next:** [SpellingCorrectionUIProvider.CorrectionHandler.Change Method](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/spellingcorrectionuiprovider-correctionhandler/change-method/llms-full.txt)
