TX Spell .NET for Windows Forms

Dictionary Class

Class
Namespace
TXTextControl.Proofing
Package
TXTextControl.TXSpell.WinForms.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXSpell.dll
Install
dotnet add package TXTextControl.TXSpell.WinForms.SDK .NET 8 and later. For .NET Framework, reference TXSpell.dll from the setup.
Also in
TXTextControl.TXSpell.Core.SDK as TXSpell.dll
Derived
OpenOfficeDictionary, UserDictionary

Description

The base class for all types of valid dictionaries is the abstract class Dictionary. The content of the dictionary is only accessed by the TXSpell.Dictionaries collection. The classes OpenOfficeDictionary and UserDictionary are inherited from the abstract class Dictionary.

Syntax

public abstract class Dictionary

Examples

The following example includes the dictionary encoding value from a Dictionary object in application diagnostics. The created object is then available to the surrounding document workflow.

Console.WriteLine($"Dictionary Encoding: {dictionary.DictionaryEncoding}");
Console.WriteLine("Dictionary is ready for use.");

Members

Properties

PropertyDescription
DictionaryEncodingGets or sets the dictionary's encoding.
DisplayNameGets or sets the text that is displayed for the dictionary inside the options dialog or the SpellCheckDialog's SuggestionDictionaryComboBox. The default value is the name of the dictionary.
IsGetSuggestionsEnabledGets or sets a value that indicates whether suggestions are created using this dictionary or not. The default value is true.
IsSelectedAsDefaultGets a value indicating whether the dictionary is selected as the default dictionary by the Language property. The default value is false.
IsSpellCheckingEnabledGets or sets a value indicating whether spell checking of this dictionary is enabled or not. The default value is true.
LanguageGets or sets the dictionary's language.
NameGets or sets the dictionary's name.
ShowInOptionsDialogGets or sets a value indicating whether the dictionary is shown in the options dialog. The default value is true.