# DialogButton.IsUndoEditButton Property

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

- **Product:** TX Spell .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **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.IsUndoEditButton Property
- **490 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/dialogbutton/isundoeditbutton-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/dialogbutton/isundoeditbutton-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/dialogbutton/isundoeditbutton-property/llms-full.txt

---

### Description

Gets or sets a value specifying the [DialogButton text](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/dialogbutton/text-property/llms-full.txt). The behavior changes to an Undo Edit button, if the preview text of the SpellCheckDialog is manually modified. When no [button](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/dialogbutton/llms-full.txt) in the [dialog](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/txspellchecker/spellcheckdialog-property/llms-full.txt) is set to true, the [preview](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/preview/llms-full.txt) text is not [editable.](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/preview/editable-property/llms-full.txt)

### Syntax

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

```vbnet
Public Property IsUndoEditButton As Boolean
```

### Examples

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

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

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

---

## Nearby

- **Previous:** [DialogButton.IsDeleteButton Property](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/dialogbutton/isdeletebutton-property/llms-full.txt)
- **Next:** [DialogButton.Text Property](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/dialogbutton/text-property/llms-full.txt)
