# Sidebar.TextControl Property

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

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 26.0
- **Namespace:** `TXTextControl.Windows.Forms`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXTextControl.Windows.Forms.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.Windows.Forms.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl.Windows.Forms > Sidebar.TextControl Property
- **291 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms/sidebar/textcontrol-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms/sidebar/textcontrol-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms/sidebar/textcontrol-property/llms-full.txt

---

### Description

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

### Syntax

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

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

### Examples

The following example uses `Sidebar.TextControl` to configure text control as part of the sidebar workflow. The change is then applied to the active document or user interface.

```csharp
sidebar.TextControl = new TextControl();
sidebar.Update();
```

```vbnet
sidebar.TextControl = New TextControl()
sidebar.Update()
```

---

## Nearby

- **Previous:** [Sidebar.Text Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms/sidebar/text-property/llms-full.txt)
- **Next:** [Sidebar.TitleFont Property](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms/sidebar/titlefont-property/llms-full.txt)
