Dictionary Class
- Namespace
TXTextControl.Proofing
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTXSpell. WPF. SDK
- Assembly
TXSpell.dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTXSpell. WPF. SDK TXSpell.from the setup.dll
- Also in
TXTextControl.asTXSpell. Core. SDK TXSpell.dll
- Derived
- Open
Office , UserDictionary Dictionary
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 DictionaryPublic MustInherit Class DictionaryExamples
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.");Console.WriteLine($"Dictionary Encoding: {dictionary.DictionaryEncoding}")
Console.WriteLine("Dictionary is ready for use.")Members
Properties
| Property | Description |
|---|---|
| DictionaryEncoding | Gets or sets the dictionary's encoding. |
| DisplayName | Gets 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. |
| IsGetSuggestionsEnabled | Gets or sets a value that indicates whether suggestions are created using this dictionary or not. The default value is true. |
| IsSelectedAsDefault | Gets a value indicating whether the dictionary is selected as the default dictionary by the Language property. The default value is false. |
| IsSpellCheckingEnabled | Gets or sets a value indicating whether spell checking of this dictionary is enabled or not. The default value is true. |
| Language | Gets or sets the dictionary's language. |
| Name | Gets or sets the dictionary's name. |
| ShowInOptionsDialog | Gets or sets a value indicating whether the dictionary is shown in the options dialog. The default value is true. |