# SynonymList Constructor

> Initializes a new instance of the SynonymList class.

- **Product:** TX Spell .NET for Windows Forms
- **Section:** Reference
- **Kind:** Constructor
- **Introduced:** 7.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 > SynonymList Constructor
- **453 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/synonymlist/constructor/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/synonymlist/constructor/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/synonymlist/constructor/llms-full.txt

---

### Description

Initializes a new instance of the [SynonymList](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/synonymlist/llms-full.txt) class.

### Syntax

```csharp
public SynonymList(string synonymListPath);
```

```vbnet
Public Sub New(synonymListPath As String)
```

### Parameters

| Parameter | Description |
|---|---|
| synonymListPath | Specifies the path for the thesaurus dat file. By only specifying the synonym list name without any file path, the corresponding thesaurus file of the default synonym lists folder is used. The name of the specified thesaurus file must begin with "th\_" or "thes\_" and end with ".dat" or ".idx". If the file does not exist, an ArgumentException is thrown. |

### Examples

The following example creates a Synonym List instance and configures its display name setting for a document workflow.

```csharp
TXTextControl.Proofing.SynonymList synonymList = new("document.docx");
synonymList.DisplayName = "CustomerName";
```

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

---

## Nearby

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