# TXSpellChecker.SynonymListsDirectoryPath Property

> Gets or sets the path to the default synonym lists folder. The default value is "(Auto)" that determines the SynonymLists directory at the application's root folder or in the \Assembly\ subdirectory in the development machine's TX Spell .NET installation directory.

- **Product:** TX Spell .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 9.0
- **Namespace:** `TXTextControl.WPF.Proofing`
- **Package:** `TXTextControl.TXSpell.WPF.SDK` (assembly `TXSpell.WPF.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXSpell.WPF.dll` from the setup
- **Path:** TX Spell .NET for WPF > Reference > TXTextControl.WPF.Proofing > TXSpellChecker.SynonymListsDirectoryPath Property
- **487 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/txspellchecker/synonymlistsdirectorypath-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/txspellchecker/synonymlistsdirectorypath-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/txspellchecker/synonymlistsdirectorypath-property/llms-full.txt

---

### Description

Gets or sets the path to the default synonym lists folder. The default value is "(Auto)" that determines the SynonymLists directory at the application's root folder or in the `\Assembly\` subdirectory in the development machine's TX Spell .NET installation directory.

### Syntax

```csharp
public string SynonymListsDirectoryPath { get; set; }
```

```vbnet
Public Property SynonymListsDirectoryPath As String
```

### Examples

The following example uses `TXSpellChecker.SynonymListsDirectoryPath` to configure synonym lists directory path as part of the txspell checker workflow. The configured value is checked before the workflow continues.

```csharp
tXSpellChecker.SynonymListsDirectoryPath = "document.docx";
if (!string.IsNullOrWhiteSpace(tXSpellChecker.SynonymListsDirectoryPath))
{
    Console.WriteLine($"Synonym Lists Directory Path: {tXSpellChecker.SynonymListsDirectoryPath}");
}
```

```vbnet
tXSpellChecker.SynonymListsDirectoryPath = "document.docx"
If Not String.IsNullOrWhiteSpace(tXSpellChecker.SynonymListsDirectoryPath) Then
    Console.WriteLine($"Synonym Lists Directory Path: {tXSpellChecker.SynonymListsDirectoryPath}")
End If
```

---

## Nearby

- **Previous:** [TXSpellChecker.SynonymLists Property](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/txspellchecker/synonymlists-property/llms-full.txt)
- **Next:** [TXSpellChecker.UserDictionaryWordAdded Event](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/txspellchecker/userdictionarywordadded-event/llms-full.txt)
