CurrentWordToCorrect Property
- 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
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; }Public ReadOnly Property CurrentWordToCorrect As ObjectExamples
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.");Console.WriteLine($"Current Word To Correct: {stateManager.CurrentWordToCorrect}")
Console.WriteLine("State Manager is ready for use.")Limitations
Read only.