# TXSpell.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 Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 9.0
- **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
- **Path:** TX Spell .NET for Windows Forms > Reference > TXTextControl.Proofing > TXSpell.SynonymListsDirectoryPath Property
- **477 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspell/synonymlistsdirectorypath-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspell/synonymlistsdirectorypath-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspell/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 `TXSpell.SynonymListsDirectoryPath` to configure synonym lists directory path as part of the txspell workflow. The configured value is checked before the workflow continues.

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

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

---

## Nearby

- **Previous:** [TXSpell.SynonymLists Property](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspell/synonymlists-property/llms-full.txt)
- **Next:** [TXSpellChecker Class](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspellchecker/llms-full.txt)
