TX Spell .NET for WPF

CorrectionHandler Class

Class|Introduced in 6.0
Namespace
TXTextControl.Proofing
Package
TXTextControl.TXSpell.WPF.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXSpell.dll
Install
dotnet add package TXTextControl.TXSpell.WPF.SDK .NET 8 and later. For .NET Framework, reference TXSpell.dll from the setup.
Also in
TXTextControl.TXSpell.Core.SDK as TXSpell.dll
Implements
INotifyPropertyChanged

Description

The CorrectionHandler class provides methods and properties which are necessary to construct the correction handling part of a spelling correction user interface.

Syntax

public sealed class SpellingCorrectionUIProvider.CorrectionHandler : INotifyPropertyChanged

Examples

The following example includes the is add to dictionary enabled value from a Correction Handler object in application diagnostics. The created object is then available to the surrounding document workflow.

Console.WriteLine($"Is Add To Dictionary Enabled: {correctionHandler.IsAddToDictionaryEnabled}");
Console.WriteLine("Correction Handler is ready for use.");

Members

Properties

PropertyDescription
IsAddToDictionaryEnabledGets a value whether the AddToDictionary method is enabled or not.
IsChangeAllEnabledGets a value whether the ChangeAll method is enabled or not.
IsChangeEnabledGets a value whether the Change method is enabled or not.
IsDeleteEnabledGets a value whether the Delete method is enabled or not.
IsIgnoreAllEnabledGets a value whether the IgnoreAll method is enabled or not.
IsIgnoreEnabledGets a value whether the Ignore method is enabled or not.
IsOptionsEnabledGets a value whether the current SpellingCorrectionUIProvider's mode is set to OptionsSettings or not.
IsUndoEditEnabledGets a value whether the current SpellingCorrectionUIProvider's mode is set to WordToCorrectEditing or not.

Methods

MethodDescription
AddToDictionaryAdds the text of the current word to correct to all user dictionaries of the current dictionary collection where the IsEditable property is set to true and the language property corresponds to the TXTextControl.MisspelledWord.Culture or incorrect word's language property. Furthermore the word is removed from all corresponding collections (TXTextControl.MisspelledWordCollection/ IncorrectWordCollection).
ChangeReplaces the current word to correct with a specified word.
ChangeAllReplaces all words to correct, that have the same text like the current uncorrected word.
CheckCorrectedWordReturns a value whether the specified word was found in one of the current selected suggestion dictionaries or not.
DeleteDeletes the current word to correct.
IgnoreIgnores the current misspelled.
IgnoreAllIgnores all words to correct, that have the same text like the current uncorrected word.

Events

EventDescription
PropertyChangedNot described in the reference. public event PropertyChangedEventHandler PropertyChanged;