# SpellCheckDialogClosingEventArgs Class

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

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

---

### Description

The SpellCheckDialogClosingEventArgs class provides data for the TXSpellChecker.SpellCheckDialogClosing event in TX Spell .NET for [WPF](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-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-wpf/reference/txtextcontrol-wpf-proofing/spellcheckdialogclosingeventargs/cancel-property/llms-full.txt): Gets or sets a value indicating whether the event is canceled or not.
- [SpellCheckDialogClosingEventArgs.StateManager Property](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/spellcheckdialogclosingeventargs/statemanager-property/llms-full.txt): Gets the SpellCheckDialogStateManager that 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-wpf/reference/txtextcontrol-wpf-proofing/spellcheckdialog/suggestionlist-property/llms-full.txt)
- **Next:** [SpellCheckDialogClosingEventArgs.Cancel Property](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/spellcheckdialogclosingeventargs/cancel-property/llms-full.txt)
