# 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 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
- **Path:** TX Spell .NET for Windows Forms > Reference > TXTextControl.Proofing > DialogButton Class
- **891 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/dialogbutton/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/dialogbutton/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-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-winforms/reference/txtextcontrol-proofing/spellcheckdialog/ignorebuttons-property/llms-full.txt), [SpellCheckDialog.ChangeButtons](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/spellcheckdialog/changebuttons-property/llms-full.txt) and [SpellCheckDialog.OptionButtons](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/spellcheckdialog/optionbuttons-property/llms-full.txt) [dialog button collections](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/dialogbuttoncollection/llms-full.txt).

### 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.Proofing.DialogButton dialogButton = new(TXTextControl.Proofing.TXSpell.ButtonType.AddToDictionary);
dialogButton.Enabled = true;
```

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

---

## In This Section

- [DialogButton Constructor](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/dialogbutton/constructor/llms-full.txt): Initializes a new instance of the DialogButton class.
- [DialogButton.Enabled Property](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/dialogbutton/enabled-property/llms-full.txt): Gets or sets a value indicating whether the DialogButton can respond to user interaction.
- [DialogButton.Font Property](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/dialogbutton/font-property/llms-full.txt): Gets or sets the font of the text displayed by the DialogButton.
- [DialogButton.IsDeleteButton Property](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-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-winforms/reference/txtextcontrol-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-winforms/reference/txtextcontrol-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-winforms/reference/txtextcontrol-proofing/dialogbutton/type-property/llms-full.txt): Gets a value of type ButtonType that is specified for the DialogButton.

---

## Nearby

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