# TXSpellChecker Constructor

> Initializes a new instance of the TXSpellChecker class.

- **Product:** TX Spell .NET for Windows Forms
- **Section:** Reference
- **Kind:** Constructor
- **Namespace:** `TXTextControl.Proofing`
- **Package:** `TXTextControl.TXSpell.WinForms.SDK` (assembly `TXSpell.Windows.Forms.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXSpell.Windows.Forms.dll` from the setup
- **Path:** TX Spell .NET for Windows Forms > Reference > TXTextControl.Proofing > TXSpellChecker Constructor
- **703 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspellchecker/constructor/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspellchecker/constructor/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspellchecker/constructor/llms-full.txt

---

### Description

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

### Syntax

#### TXSpellChecker()

Initializes a new instance of the [TXSpellChecker](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspellchecker/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 is defined through the [TXSpellChecker.Language](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspellchecker/language-property/llms-full.txt) property.

```csharp
public TXSpellChecker();
```

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

#### TXSpellChecker(string)

Initializes a new instance of the [TXSpellChecker](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspellchecker/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 TXSpellChecker(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 is loaded as [default dictionary](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/dictionary/isselectedasdefault-property/llms-full.txt). The parameter corresponds to the [TXSpellChecker.Language](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspellchecker/language-property/llms-full.txt) property. |

### Examples

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

```csharp
using TXTextControl.Proofing.TXSpellChecker tXSpellChecker = new();
tXSpellChecker.DictionariesDirectoryPath = "document.docx";
```

```vbnet
Dim tXSpellChecker As New TXTextControl.Proofing.TXSpellChecker()
tXSpellChecker.DictionariesDirectoryPath = "document.docx"
```

---

## Nearby

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