# DialogButton.Font Property

> Gets or sets the font of the text displayed by the DialogButton.

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

---

### Description

Gets or sets the font of the text displayed by the [DialogButton](https://docs.textcontrol.com/tx-spell-dotnet-winforms/reference/txtextcontrol-proofing/dialogbutton/llms-full.txt).

### Syntax

```csharp
public System.Drawing.Font Font { get; set; }
```

```vbnet
Public Property Font As System.Drawing.Font
```

### Examples

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

```csharp
dialogButton.Font = new System.Drawing.Font("Arial", 11.0f);
if (dialogButton.Font != null)
{
    Console.WriteLine("Dialog Button: Font is available.");
}
```

```vbnet
dialogButton.Font = New System.Drawing.Font("Arial", 11.0F)
If dialogButton.Font IsNot Nothing Then
    Console.WriteLine("Dialog Button: Font is available.")
End If
```

---

## Nearby

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