# Sidebar.Content Property

> Gets or sets an object of type System.Windows.Forms.Control that represents the content of the Sidebar.

- **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.Content Property
- **329 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms/sidebar/content-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms/sidebar/content-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms/sidebar/content-property/llms-full.txt

---

### Description

Gets or sets an object of type `System.Windows.Forms.Control` that represents the content of the Sidebar.

### Syntax

```csharp
public Control Content { get; set; }
```

```vbnet
Public Property Content As Control
```

### Examples

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

```csharp
sidebar.Content = new System.Windows.Forms.Control();
sidebar.Update();
```

```vbnet
sidebar.Content = New System.Windows.Forms.Control()
sidebar.Update()
```

### Limitations

The content can only be set if the [ContentLayout](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms/sidebar/contentlayout-property/llms-full.txt) is defined as `SidebarContentLayout.Custom`.

---

## Nearby

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