# SpellCheckDialogClosingEventArgs Class

> The SpellCheckDialogClosingEventArgs class provides data for the TXSpellChecker.SpellCheckDialogClosing event in TX Spell .NET for Windows Forms.

- **Product:** TX Spell .NET for Windows Forms
- **Section:** Reference
- **Kind:** Class
- **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
- **Inherits:** `System.EventArgs`
- **Path:** TX Spell .NET for Windows Forms > Reference > TXTextControl.Proofing > SpellCheckDialogClosingEventArgs Class
- **592 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/spellcheckdialogclosingeventargs/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/spellcheckdialogclosingeventargs/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/spellcheckdialogclosingeventargs/llms-full.txt

---

### Description

The SpellCheckDialogClosingEventArgs class provides data for the TXSpellChecker.SpellCheckDialogClosing event in TX Spell .NET for [Windows Forms](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspellchecker/spellcheckdialogclosing-event/llms-full.txt).

### Syntax

```csharp
public sealed class SpellCheckDialogClosingEventArgs : EventArgs
```

```vbnet
Public NotInheritable Class SpellCheckDialogClosingEventArgs
    Inherits EventArgs
```

### Examples

The following example includes the cancel value from a Spell Check Dialog Closing Event Args object in application diagnostics. The created object is then available to the surrounding document workflow.

```csharp
Console.WriteLine($"Cancel: {spellCheckDialogClosingEventArgs.Cancel}");
Console.WriteLine("Spell Check Dialog Closing Event Args is ready for use.");
```

```vbnet
Console.WriteLine($"Cancel: {spellCheckDialogClosingEventArgs.Cancel}")
Console.WriteLine("Spell Check Dialog Closing Event Args is ready for use.")
```

---

## In This Section

- [SpellCheckDialogClosingEventArgs.Cancel Property](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/spellcheckdialogclosingeventargs/cancel-property/llms-full.txt): Gets or sets a value indicating whether the event is canceled or not.
- [SpellCheckDialogClosingEventArgs.CloseReason Property](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/spellcheckdialogclosingeventargs/closereason-property/llms-full.txt): Gets a value that indicates the reason of the closing.
- [SpellCheckDialogClosingEventArgs.StateManager Property](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/spellcheckdialogclosingeventargs/statemanager-property/llms-full.txt): Gets the SpellCheckDialogStateManager which provides methods and properties to get or set the next object of type IncorrectWord or TXTextControl.MisspelledWord that is handled by the SpellCheckDialog.

---

## Nearby

- **Previous:** [SpellCheckDialog.SuggestionList Property](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/spellcheckdialog/suggestionlist-property/llms-full.txt)
- **Next:** [SpellCheckDialogClosingEventArgs.Cancel Property](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/spellcheckdialogclosingeventargs/cancel-property/llms-full.txt)
