# Dictionary Class

> 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.

- **Product:** TX Spell .NET for Windows Forms
- **Section:** Reference
- **Kind:** Class
- **Namespace:** `TXTextControl.Proofing`
- **Package:** `TXTextControl.TXSpell.WinForms.SDK` (assembly `TXSpell.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TXSpell.Core.SDK` (assembly `TXSpell.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXSpell.dll` from the setup
- **Derived:** `TXTextControl.Proofing.OpenOfficeDictionary`, `TXTextControl.Proofing.UserDictionary`
- **Path:** TX Spell .NET for Windows Forms > Reference > TXTextControl.Proofing > Dictionary Class
- **878 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/dictionary/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/dictionary/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/dictionary/llms-full.txt

---

### 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](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspell/dictionaries-property/llms-full.txt) collection. The classes [OpenOfficeDictionary](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/openofficedictionary/llms-full.txt) and [UserDictionary](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/userdictionary/llms-full.txt) are inherited from the abstract class Dictionary.

### Syntax

```csharp
public abstract class Dictionary
```

```vbnet
Public MustInherit 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.

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

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

---

## In This Section

- [Dictionary.DictionaryEncoding Property](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/dictionary/dictionaryencoding-property/llms-full.txt): Gets or sets the dictionary's encoding.
- [Dictionary.DisplayName Property](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/dictionary/displayname-property/llms-full.txt): 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.
- [Dictionary.IsGetSuggestionsEnabled Property](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/dictionary/isgetsuggestionsenabled-property/llms-full.txt): Gets or sets a value that indicates whether suggestions are created using this dictionary or not. The default value is true.
- [Dictionary.IsSelectedAsDefault Property](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/dictionary/isselectedasdefault-property/llms-full.txt): Gets a value indicating whether the dictionary is selected as the default dictionary by the Language property. The default value is false.
- [Dictionary.IsSpellCheckingEnabled Property](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/dictionary/isspellcheckingenabled-property/llms-full.txt): Gets or sets a value indicating whether spell checking of this dictionary is enabled or not. The default value is true.
- [Dictionary.Language Property](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/dictionary/language-property/llms-full.txt): Gets or sets the dictionary's language.
- [Dictionary.Name Property](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/dictionary/name-property/llms-full.txt): Gets or sets the dictionary's name.
- [Dictionary.ShowInOptionsDialog Property](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/dictionary/showinoptionsdialog-property/llms-full.txt): Gets or sets a value indicating whether the dictionary is shown in the options dialog. The default value is true.

---

## Nearby

- **Previous:** [DialogButtonEventArgs.StateManager Property](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/dialogbuttoneventargs/statemanager-property/llms-full.txt)
- **Next:** [Dictionary.DictionaryEncoding Property](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/dictionary/dictionaryencoding-property/llms-full.txt)
