# DialogButtonEventArgs Class

> The DialogButtonEventArgs class provides data for the TXSpellChecker.DialogButtonClicked 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 > DialogButtonEventArgs Class
- **509 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/dialogbuttoneventargs/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/dialogbuttoneventargs/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/dialogbuttoneventargs/llms-full.txt

---

### Description

The DialogButtonEventArgs class provides data for the TXSpellChecker.DialogButtonClicked event in TX Spell .NET for [WPF](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/txspellchecker/dialogbuttonclicked-event/llms-full.txt).

### Syntax

```csharp
public sealed class DialogButtonEventArgs : EventArgs
```

```vbnet
Public NotInheritable Class DialogButtonEventArgs
    Inherits EventArgs
```

### Examples

The following example includes the dialog button value from a Dialog Button Event Args object in application diagnostics. The created object is then available to the surrounding document workflow.

```csharp
Console.WriteLine($"Dialog Button: {dialogButtonEventArgs.DialogButton}");
Console.WriteLine("Dialog Button Event Args is ready for use.");
```

```vbnet
Console.WriteLine($"Dialog Button: {dialogButtonEventArgs.DialogButton}")
Console.WriteLine("Dialog Button Event Args is ready for use.")
```

---

## In This Section

- [DialogButtonEventArgs.DialogButton Property](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/dialogbuttoneventargs/dialogbutton-property/llms-full.txt): Gets the clicked DialogButton.
- [DialogButtonEventArgs.StateManager Property](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/dialogbuttoneventargs/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:** [DialogButtonCollection.Remove Method](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/dialogbuttoncollection/remove-method/llms-full.txt)
- **Next:** [DialogButtonEventArgs.DialogButton Property](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/dialogbuttoneventargs/dialogbutton-property/llms-full.txt)
