# TXSpellChecker.OptionsDialogOpening Event

> Occurs when the built-in options dialog is invoked by the TXSpellChecker.OptionsDialog method or clicking the Options... button of the built-in SpellCheckDialog. The OptionsDialogOpeningHandler receives an argument of type OptionsDialogOpeningEventArgs containing data related to this event.

- **Product:** TX Spell .NET for WPF
- **Section:** Reference
- **Kind:** Event
- **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 > TXSpellChecker.OptionsDialogOpening Event
- **351 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/txspellchecker/optionsdialogopening-event/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/txspellchecker/optionsdialogopening-event/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/txspellchecker/optionsdialogopening-event/llms-full.txt

---

### Description

Occurs when the built-in options dialog is invoked by the [TXSpellChecker.OptionsDialog](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/txspellchecker/optionsdialog-method/llms-full.txt) method or clicking the Options... button of the built-in SpellCheckDialog. The OptionsDialogOpeningHandler receives an argument of type OptionsDialogOpeningEventArgs containing data related to this event.

### Syntax

```csharp
public event OptionsDialogOpeningHandler OptionsDialogOpening;
```

```vbnet
Public Event OptionsDialogOpening As OptionsDialogOpeningHandler
```

### Examples

The following example records useful context when options dialog opening occurs.

```csharp
tXSpellChecker.OptionsDialogOpening += (sender, e) =>
{
    Console.WriteLine($"Cancel: {e.Cancel}");
};
```

```vbnet
AddHandler tXSpellChecker.OptionsDialogOpening,
    Sub(sender, e)
        Console.WriteLine($"Cancel: {e.Cancel}")
    End Sub
```

---

## Nearby

- **Previous:** [TXSpellChecker.OptionsDialog Method](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/txspellchecker/optionsdialog-method/llms-full.txt)
- **Next:** [TXSpellChecker.SpellCheckDialog Property](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/txspellchecker/spellcheckdialog-property/llms-full.txt)
