# SpellCheckDialogStateManager.Close Method

> Closes the spell check dialog.

- **Product:** TX Spell .NET for Windows Forms
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 3.0
- **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 > SpellCheckDialogStateManager.Close Method
- **291 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/spellcheckdialogstatemanager/close-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/spellcheckdialogstatemanager/close-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/spellcheckdialogstatemanager/close-method/llms-full.txt

---

### Description

Closes the spell check dialog.

### Syntax

```csharp
public void Close();
```

```vbnet
Public Sub Close()
```

### Examples

The following example uses Close in a focused Spell Check Dialog State Manager workflow. The created object is then available to the surrounding document workflow.

```csharp
spellCheckDialogStateManager.Close();
Console.WriteLine("Spell Check Dialog State Manager is ready for use.");
```

```vbnet
spellCheckDialogStateManager.Close()
Console.WriteLine("Spell Check Dialog State Manager is ready for use.")
```

### Remarks

An exception is thrown, if this method is called by the [SpellCheckDialogClosingEventArgs.StateManager](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/spellcheckdialogclosingeventargs/statemanager-property/llms-full.txt) property.

---

## Nearby

- **Previous:** [SpellCheckDialogStateManager Class](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/spellcheckdialogstatemanager/llms-full.txt)
- **Next:** [SpellCheckDialogStateManager.NextIFormattedText Property](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/spellcheckdialogstatemanager/nextiformattedtext-property/llms-full.txt)
