TX Spell .NET for WPF

CurrentWordToCorrect Property

Property|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

Gets an object of type TXTextControl.MisspelledWord or IncorrectWord and represents that current word to correct which is currently handled by the SpellingCorrectionUIProvider. It is redetermined on every invocation of SetCurrent, IsOptionsSetting or the TXSpell.SpellingCorrectionUIProvider.CorrectionHandler methods (AddToDictionary(), Change(string correctedWord), ChangeAll(string correctedWord), Delete(), Ignore(), IgnoreAll()). Changes on this property lead to an update of the Mode property. If the source of the word to correct is an object of type TXTextControl.TextControl, the CurrentIFormattedText property is updated as well.

Syntax

public object CurrentWordToCorrect { get; }

Examples

The following example includes the current word to correct value in application diagnostics. The created object is then available to the surrounding document workflow.

Console.WriteLine($"Current Word To Correct: {stateManager.CurrentWordToCorrect}");
Console.WriteLine("State Manager is ready for use.");

Limitations

Read only.