TX Spell .NET for Windows Forms

SuggestionDictionaries Property

Property|Introduced in 6.0
Namespace
TXTextControl.Proofing
Package
TXTextControl.TXSpell.WinForms.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 array of suggestion dictionaries where the dictionary's language equals to the language of the current word to correct. This property is redetermined on every change of the CurrentWordToCorrect property and lead to an update of the SelectedSuggestionDictionaries property.

Syntax

public Dictionary[] SuggestionDictionaries { get; }

Examples

The following example iterates through the suggestion dictionaries collection and processes each dictionary.

foreach (TXTextControl.Proofing.Dictionary dictionary in suggestionDictionariesHandler.SuggestionDictionaries)
{
    dictionary.Name = "CustomerName";
}

Limitations

Read only.

Remarks

This property only returns an array of suggestion dictionaries if the SpellingCorrectionUIProvider's mode is set to SuggestionsCreated, NoSuggestionsCreated, WordToCorrectIsDuplicate or WordToCorrectEditing.