# StatusBar.Text Property

> Gets or sets the text of the status bar. When a text is set, the status bar shows this text until a status of a connected WPF.TextControl changes.

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

---

### Description

Gets or sets the text of the status bar. When a text is set, the status bar shows this text until a status of a connected [WPF.TextControl](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/llms-full.txt) changes.

### Syntax

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

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

### Examples

The following example uses `StatusBar.Text` to replace the status bar's displayed content. The configured value is checked before the workflow continues.

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

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

---

## Nearby

- **Previous:** [StatusBar.ShowZoomTrackBar Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/statusbar/showzoomtrackbar-property/llms-full.txt)
- **Next:** [StatusBarColors Class](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/statusbarcolors/llms-full.txt)
