# OpenOfficeDictionary Class

> The OpenOfficeDictionary class represents a dictionary that gets its content from a Hunspell Open Source dictionary. As with all dictionaries of type Dictionary, the content of the dictionary is only accessed when the dictionary is added to the TXSpell.Dictionaries collection. The first implementation loads a Hunspell Open Source dictionary from a file that is defined by a dictionary path. Using the dictionary name only without a file path, the corresponding dictionary file of the default dictionary folder is used. The second constructor loads a dictionary from string arrays that represent the content of a Hunspell Open Source dictionary and the corresponding affix file. It is recommended to create these arrays by using the encoding that is defined in the corresponding affix file represented by the "SET"-Flag. Using this implementation, it is also required to define the language of the dictionary by setting the System.Globalization.CultureInfo language parameter that sets the Proofing.Dictionary.Language property automatically. It is inherited from the abstract class Dictionary.

- **Product:** TX Spell .NET for WPF
- **Section:** Reference
- **Kind:** Class
- **Namespace:** `TXTextControl.Proofing`
- **Package:** `TXTextControl.TXSpell.WPF.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
- **Inherits:** `TXTextControl.Proofing.Dictionary`
- **Path:** TX Spell .NET for WPF > Reference > TXTextControl.Proofing > OpenOfficeDictionary Class
- **1293 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/openofficedictionary/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/openofficedictionary/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/openofficedictionary/llms-full.txt

---

### Description

The OpenOfficeDictionary class represents a dictionary that gets its content from a Hunspell Open Source dictionary. As with all dictionaries of type [Dictionary](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/dictionary/llms-full.txt), the content of the dictionary is only accessed when the dictionary is added to the [TXSpell.Dictionaries](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/txspell/dictionaries-property/llms-full.txt) collection. The first implementation loads a Hunspell Open Source dictionary from a file that is defined by a dictionary path. Using the dictionary name only without a file path, the corresponding dictionary file of the default dictionary folder is used. The second constructor loads a dictionary from string arrays that represent the content of a Hunspell Open Source dictionary and the corresponding affix file. It is recommended to create these arrays by using the encoding that is defined in the corresponding affix file represented by the "SET"-Flag. Using this implementation, it is also required to define the language of the dictionary by setting the `System.Globalization.CultureInfo` language parameter that sets the [Proofing.Dictionary.Language](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/dictionary/language-property/llms-full.txt) property automatically. It is inherited from the abstract class [Dictionary](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/dictionary/llms-full.txt).

### Syntax

```csharp
public sealed class OpenOfficeDictionary : Dictionary
```

```vbnet
Public NotInheritable Class OpenOfficeDictionary
    Inherits Dictionary
```

### Examples

The following example creates an Open Office Dictionary instance and configures its display name setting for a document workflow.

```csharp
TXTextControl.Proofing.OpenOfficeDictionary openOfficeDictionary = new("document.docx");
openOfficeDictionary.DisplayName = "CustomerName";
```

```vbnet
Dim openOfficeDictionary As New TXTextControl.Proofing.OpenOfficeDictionary("document.docx")
openOfficeDictionary.DisplayName = "CustomerName"
```

---

## In This Section

- [OpenOfficeDictionary Constructor](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/openofficedictionary/constructor/llms-full.txt): Initializes a new instance of the OpenOfficeDictionary class.

---

## Nearby

- **Previous:** [MisspelledWordChangingEventArgs.WillBeDuplicate Property](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/misspelledwordchangingeventargs/willbeduplicate-property/llms-full.txt)
- **Next:** [OpenOfficeDictionary Constructor](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/openofficedictionary/constructor/llms-full.txt)
