# ServerTextControl.Text Property

> Gets or sets the control's text.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 12.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.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 Windows Forms > Reference > TXTextControl > ServerTextControl.Text Property
- **411 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/servertextcontrol/text-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/servertextcontrol/text-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/servertextcontrol/text-property/llms-full.txt

---

### Description

Gets or sets the control's text.

### Syntax

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

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

### Examples

The following example uses `ServerTextControl.Text` to replace the server text control's displayed content. The configured value is checked before the workflow continues.

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

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

---

## Nearby

- **Previous:** [ServerTextControl.TablesOfContents Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/servertextcontrol/tablesofcontents-property/llms-full.txt)
- **Next:** [ServerTextControl.TextBackColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/servertextcontrol/textbackcolor-property/llms-full.txt)
