Change Method
- Namespace
TXTextControl.Proofing
- Package
TXTextControl.asTXSpell. WPF. SDK TXSpell.from the private NuGet feed or Text Control Offline Packagesdll
- Also in
TXTextControl.asTXSpell. Core. SDK TXSpell.dll
Description
Replaces the current word to correct with a specified word.
Syntax
public void Change(string correctedWord);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.
correctionHandler.Change("Quarterly report");
Console.WriteLine("Correction Handler is ready for use.");correctionHandler.Change("Quarterly report")
Console.WriteLine("Correction Handler is ready for use.")Remarks
This method is only enabled if the SpellingCorrectionUIProvider's mode is set to SuggestionsCreated or WordToCorrectEditing.