# SpellingCorrectionUIProvider.CorrectionHandler.Change Method

> Replaces the current word to correct with a specified word.

- **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.Change Method
- **455 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/spellingcorrectionuiprovider-correctionhandler/change-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/spellingcorrectionuiprovider-correctionhandler/change-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/spellingcorrectionuiprovider-correctionhandler/change-method/llms-full.txt

---

### Description

Replaces the [current word to correct](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/spellingcorrectionuiprovider-statemanager/currentwordtocorrect-property/llms-full.txt) with a specified word.

### Syntax

```csharp
public void Change(string correctedWord);
```

```vbnet
Public Sub Change(correctedWord As String)
```

### Parameters

| Parameter | Description |
|---|---|
| correctedWord | Specifies the corrected text. The text of the current word correct is replaced with this text. |

### Examples

The following example changes for the correction handler. The created object is then available to the surrounding document workflow.

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

```vbnet
correctionHandler.Change("Quarterly report")
Console.WriteLine("Correction Handler is ready for use.")
```

### Remarks

This method is only enabled if 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 [WordToCorrectEditing](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/txspell-spellingcorrectionmode/enumeration/llms-full.txt).

---

## Nearby

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