# TXSpell Constructor

> Initializes a new instance of the TXSpell class.

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

---

### Description

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

### Syntax

#### TXSpell()

Initializes a new instance of the [TXSpell](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspell/llms-full.txt) class. For spell check operations that [dictionary](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/dictionary/llms-full.txt) will be used which was defined by the [TXSpell.Language](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspell/language-property/llms-full.txt) property.

```csharp
public TXSpell();
```

```vbnet
Public Sub New()
```

#### TXSpell(string)

Initializes a new instance of the [TXSpell](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspell/llms-full.txt) class. For spell check operations, a [dictionary](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/dictionary/llms-full.txt) is used that corresponds to the specified language.

```csharp
public TXSpell(string language);
```

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

| Parameter | Description |
|---|---|
| language | The name of a [dictionary](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/dictionary/llms-full.txt) that is located in the default dictionary folder and should be loaded as the [default dictionary](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/dictionary/isselectedasdefault-property/llms-full.txt). The parameter corresponds to the [TXSpell.Language](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspell/language-property/llms-full.txt) property. |

### Examples

The following example creates a TXSpell instance and configures its dictionaries directory path setting for a document workflow.

```csharp
TXTextControl.Proofing.TXSpell tXSpell = new();
tXSpell.DictionariesDirectoryPath = "document.docx";
```

```vbnet
Dim tXSpell As New TXTextControl.Proofing.TXSpell()
tXSpell.DictionariesDirectoryPath = "document.docx"
```

---

## Nearby

- **Previous:** [TXSpell.Check Method](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspell/check-method/llms-full.txt)
- **Next:** [TXSpell.Create Method](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspell/create-method/llms-full.txt)
