TX Spell .NET for Windows Forms

SelectedSuggestionDictionaries 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 or sets an array of dictionaries which are used to create suggestions for the SuggestionsHandler.Suggestions property. Changes on this property lead to an update of the StateManager.Mode and SuggestionsHandler.Suggestions properties.

Syntax

public Dictionary[] SelectedSuggestionDictionaries { get; set; }

Examples

The following example uses SuggestionDictionariesHandler.SelectedSuggestionDictionaries to configure selected suggestion dictionaries as part of the suggestion dictionaries handler workflow. The configured value is checked before the workflow continues.

suggestionDictionariesHandler.SelectedSuggestionDictionaries = Array.Empty<TXTextControl.Proofing.Dictionary>();
if (suggestionDictionariesHandler.SelectedSuggestionDictionaries != null)
{
    Console.WriteLine("Suggestion Dictionaries Handler: Selected Suggestion Dictionaries is available.");
}