# SpellCheckDialog.CloseOnFinished Property

> Gets or sets a value specifying whether the SpellCheckDialog is closed on completing the spell checking. The default value is true.

- **Product:** TX Spell .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 3.0
- **Namespace:** `TXTextControl.WPF.Proofing`
- **Package:** `TXTextControl.TXSpell.WPF.SDK` (assembly `TXSpell.WPF.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXSpell.WPF.dll` from the setup
- **Path:** TX Spell .NET for WPF > Reference > TXTextControl.WPF.Proofing > SpellCheckDialog.CloseOnFinished Property
- **383 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/spellcheckdialog/closeonfinished-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/spellcheckdialog/closeonfinished-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/spellcheckdialog/closeonfinished-property/llms-full.txt

---

### Description

Gets or sets a value specifying whether the SpellCheckDialog is closed on completing the spell checking. The default value is true.

### Syntax

```csharp
public bool CloseOnFinished { get; set; }
```

```vbnet
Public Property CloseOnFinished As Boolean
```

### Examples

The following example uses `SpellCheckDialog.CloseOnFinished` to configure close on finished as part of the spell check dialog workflow. The configured value is checked before the workflow continues.

```csharp
spellCheckDialog.CloseOnFinished = true;
if (spellCheckDialog.CloseOnFinished)
{
    Console.WriteLine("Spell Check Dialog: Close On Finished is enabled.");
}
```

```vbnet
spellCheckDialog.CloseOnFinished = True
If spellCheckDialog.CloseOnFinished Then
    Console.WriteLine("Spell Check Dialog: Close On Finished is enabled.")
End If
```

---

## Nearby

- **Previous:** [SpellCheckDialog.ChangeInAllTextParts Property](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/spellcheckdialog/changeinalltextparts-property/llms-full.txt)
- **Next:** [SpellCheckDialog.FontFamily Property](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/spellcheckdialog/fontfamily-property/llms-full.txt)
