TX Spell .NET for WPF

Change Method

Method|Introduced in 6.0
Namespace
TXTextControl.Proofing
Package
TXTextControl.TXSpell.WPF.SDK as TXSpell.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TXSpell.Core.SDK as TXSpell.dll

Description

Replaces the current word to correct with a specified word.

Syntax

public void Change(string correctedWord);

Parameters

ParameterDescription
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.");

Remarks

This method is only enabled if the SpellingCorrectionUIProvider's mode is set to SuggestionsCreated or WordToCorrectEditing.