# Dictionary.DictionaryEncoding Property

> Gets or sets the dictionary's encoding.

- **Product:** TX Spell .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **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
- **Path:** TX Spell .NET for WPF > Reference > TXTextControl.Proofing > Dictionary.DictionaryEncoding Property
- **418 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/dictionary/dictionaryencoding-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/dictionary/dictionaryencoding-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/dictionary/dictionaryencoding-property/llms-full.txt

---

### Description

Gets or sets the [dictionary's](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/dictionary/llms-full.txt) encoding.

### Syntax

```csharp
public Encoding DictionaryEncoding { get; set; }
```

```vbnet
Public Property DictionaryEncoding As Encoding
```

### Examples

The following example uses `Dictionary.DictionaryEncoding` to configure dictionary encoding as part of the dictionary workflow. The configured value is checked before the workflow continues.

```csharp
dictionary.DictionaryEncoding = System.Text.Encoding.UTF8;
if (dictionary.DictionaryEncoding != null)
{
    Console.WriteLine("Dictionary: Dictionary Encoding is available.");
}
```

```vbnet
dictionary.DictionaryEncoding = System.Text.Encoding.UTF8
If dictionary.DictionaryEncoding IsNot Nothing Then
    Console.WriteLine("Dictionary: Dictionary Encoding is available.")
End If
```

---

## Nearby

- **Previous:** [Dictionary Class](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/dictionary/llms-full.txt)
- **Next:** [Dictionary.DisplayName Property](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/dictionary/displayname-property/llms-full.txt)
