# Sidebar.TextControl Property

> Gets or sets the TextControl that is used for the predefined TextControl feature layouts.

- **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.TextControl Property
- **440 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/sidebar/textcontrol-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/sidebar/textcontrol-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/sidebar/textcontrol-property/llms-full.txt

---

### Description

Gets or sets the [TextControl](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/llms-full.txt) that is used for the [predefined TextControl feature layouts](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/sidebar/contentlayout-property/llms-full.txt).

### Syntax

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

```vbnet
Public Property TextControl As String
```

### Examples

The following example uses `Sidebar.TextControl` to configure text control as part of the sidebar workflow. The configured value is checked before the workflow continues.

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

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

---

## Nearby

- **Previous:** [Sidebar.Text Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/sidebar/text-property/llms-full.txt)
- **Next:** [Sidebar.TitleFontFamily Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/sidebar/titlefontfamily-property/llms-full.txt)
