# ServerTextControl.Font Property

> Gets or sets the control's font.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 12.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.Server.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.Server.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl > ServerTextControl.Font Property
- **442 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/servertextcontrol/font-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/servertextcontrol/font-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/servertextcontrol/font-property/llms-full.txt

---

### Description

Gets or sets the control's font.

### Syntax

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

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

### Examples

The following example uses `ServerTextControl.Font` to configure font as part of the server text control workflow. The configured value is checked before the workflow continues.

```csharp
textControl.Font = new System.Drawing.Font("Arial", 11.0f);
if (textControl.Font != null)
{
    Console.WriteLine("Server Text Control: Font is available.");
}
```

```vbnet
textControl.Font = New System.Drawing.Font("Arial", 11.0F)
If textControl.Font IsNot Nothing Then
    Console.WriteLine("Server Text Control: Font is available.")
End If
```

---

## Nearby

- **Previous:** [ServerTextControl.Find Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/servertextcontrol/find-method/llms-full.txt)
- **Next:** [ServerTextControl.FontSettings Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/servertextcontrol/fontsettings-property/llms-full.txt)
