# DialogButton.IsDeleteButton Property

> 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).

- **Product:** TX Spell .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **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.IsDeleteButton Property
- **449 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/dialogbutton/isdeletebutton-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/dialogbutton/isdeletebutton-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/dialogbutton/isdeletebutton-property/llms-full.txt

---

### Description

Gets or sets a value specifying the [DialogButton text](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/dialogbutton/text-property/llms-full.txt). The behavior changes to a Delete button, if the [incorrect word](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/incorrectword/llms-full.txt) (`TXTextControl.MisspelledWord`) is a [duplicated word](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-proofing/incorrectword/isduplicate-property/llms-full.txt) (`TXTextControl.MisspelledWord.IsDuplicate`).

### Syntax

```csharp
public bool IsDeleteButton { get; set; }
```

```vbnet
Public Property IsDeleteButton As Boolean
```

### Examples

The following example uses `DialogButton.IsDeleteButton` to configure is delete button as part of the dialog button workflow. The configured value is checked before the workflow continues.

```csharp
dialogButton.IsDeleteButton = true;
if (dialogButton.IsDeleteButton)
{
    Console.WriteLine("Dialog Button: Is Delete Button is enabled.");
}
```

```vbnet
dialogButton.IsDeleteButton = True
If dialogButton.IsDeleteButton Then
    Console.WriteLine("Dialog Button: Is Delete Button is enabled.")
End If
```

---

## Nearby

- **Previous:** [DialogButton.FontWeight Property](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/dialogbutton/fontweight-property/llms-full.txt)
- **Next:** [DialogButton.IsUndoEditButton Property](https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/dialogbutton/isundoeditbutton-property/llms-full.txt)
