# DialogButton.Text Property

> Gets or sets the text displayed by the DialogButton.

- **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.Text Property
- **413 words**
- **Web URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/dialogbutton/text-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/dialogbutton/text-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-spell-dotnet-wpf/reference/txtextcontrol-wpf-proofing/dialogbutton/text-property/llms-full.txt

---

### Description

Gets or sets the text displayed by the DialogButton.

### Syntax

```csharp
public string Text { get; set; }
```

```vbnet
Public Property Text As String
```

### Examples

The following example uses `DialogButton.Text` to replace the dialog button's displayed content. The configured value is checked before the workflow continues.

```csharp
dialogButton.Text = "Quarterly results";
if (!string.IsNullOrWhiteSpace(dialogButton.Text))
{
    Console.WriteLine($"Text: {dialogButton.Text}");
}
```

```vbnet
dialogButton.Text = "Quarterly results"
If Not String.IsNullOrWhiteSpace(dialogButton.Text) Then
    Console.WriteLine($"Text: {dialogButton.Text}")
End If
```

---

## Nearby

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