# DialogButton Class

> The DialogButton class represents a button of the built-in SpellCheckDialog. Objects of this class can be added or removed to the dialog by modifying the SpellCheckDialog.IgnoreButtons, SpellCheckDialog.ChangeButtons and SpellCheckDialog.OptionButtons dialog button collections.

- **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
- **Path:** TX Spell .NET for WPF > Reference > TXTextControl.WPF.Proofing > DialogButton Class
- **1043 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/dialogbutton/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/dialogbutton/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/dialogbutton/llms-full.txt

---

### Description

The DialogButton class represents a button of the built-in SpellCheckDialog. Objects of this class can be added or removed to the dialog by modifying the [SpellCheckDialog.IgnoreButtons](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/spellcheckdialog/ignorebuttons-property/llms-full.txt), [SpellCheckDialog.ChangeButtons](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/spellcheckdialog/changebuttons-property/llms-full.txt) and [SpellCheckDialog.OptionButtons](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/spellcheckdialog/optionbuttons-property/llms-full.txt) dialog button collections.

### Syntax

```csharp
public sealed class DialogButton
```

```vbnet
Public NotInheritable Class DialogButton
```

### Examples

The following example creates a Dialog Button instance and configures its enabled setting for a document workflow.

```csharp
TXTextControl.WPF.Proofing.DialogButton dialogButton = new(TXTextControl.Proofing.TXSpell.ButtonType.AddToDictionary);
dialogButton.Enabled = true;
```

```vbnet
Dim dialogButton As New TXTextControl.WPF.Proofing.DialogButton(TXTextControl.Proofing.TXSpell.ButtonType.AddToDictionary)
dialogButton.Enabled = True
```

---

## In This Section

- [DialogButton Constructor](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/dialogbutton/constructor/llms-full.txt): Initializes a new instance of the DialogButton class.
- [DialogButton.Enabled Property](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/dialogbutton/enabled-property/llms-full.txt): Gets or sets a value indicating whether the DialogButton can respond to user interaction.
- [DialogButton.FontFamily Property](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/dialogbutton/fontfamily-property/llms-full.txt): Gets or sets the font family of the text displayed by the DialogButton.
- [DialogButton.FontSize Property](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/dialogbutton/fontsize-property/llms-full.txt): Gets or sets the font size of the text displayed by the DialogButton.
- [DialogButton.FontStyle Property](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/dialogbutton/fontstyle-property/llms-full.txt): Gets or sets the font style of the text displayed by the DialogButton.
- [DialogButton.FontWeight Property](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/dialogbutton/fontweight-property/llms-full.txt): Gets or sets the font weight of the text displayed by the DialogButton.
- [DialogButton.IsDeleteButton Property](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/dialogbutton/isdeletebutton-property/llms-full.txt): Gets or sets a value specifying the DialogButton text. The behavior changes to a Delete button, if the incorrect word (TXTextControl.MisspelledWord) is a duplicated word (TXTextControl.MisspelledWord.IsDuplicate).
- [DialogButton.IsUndoEditButton Property](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/dialogbutton/isundoeditbutton-property/llms-full.txt): Gets or sets a value specifying the DialogButton text. The behavior changes to an Undo Edit button, if the preview text of the SpellCheckDialog is manually modified. When no button in the dialog is set to true, the preview text is not editable.
- [DialogButton.Text Property](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/dialogbutton/text-property/llms-full.txt): Gets or sets the text displayed by the DialogButton.
- [DialogButton.Type Property](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/dialogbutton/type-property/llms-full.txt): Gets a value of type ButtonType which is specified for the DialogButton.

---

## Nearby

- **Previous:** [TXTextControl.WPF.Proofing namespace](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/llms-full.txt)
- **Next:** [DialogButton Constructor](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/dialogbutton/constructor/llms-full.txt)
