TX Spell .NET for WPF

ChangeAll 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 all words to correct, that have the same text like the current uncorrected word.

Syntax

public void ChangeAll(string correctedWord);

Parameters

ParameterDescription
correctedWord

Specifies the corrected text. The text of the current word to correct is replaced with this text.

Examples

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

correctionHandler.ChangeAll("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.