# Sidebar.Text Property

> Gets or sets the text that is displayed in the title bar of the Sidebar.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 26.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 > Sidebar.Text Property
- **409 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/sidebar/text-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/sidebar/text-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/sidebar/text-property/llms-full.txt

---

### Description

Gets or sets the text that is displayed in the title bar of the Sidebar.

### Syntax

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

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

### Examples

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

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

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

---

## Nearby

- **Previous:** [Sidebar.StylesItem Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/sidebar/stylesitem-enumeration/llms-full.txt)
- **Next:** [Sidebar.TextControl Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/sidebar/textcontrol-property/llms-full.txt)
