# Sidebar.ContentLayout Property

> Determines the content layout that has to be intialized and rendered for the Sidebar. Beside the predefined TextControl feature layouts SidebarContentLayout.FieldNavigator, SidebarContentLayout.Find, SidebarContentLayout.Goto, SidebarContentLayout.Replace, SidebarContentLayout.Styles, SidebarContentLayout.TrackedChanges, SidebarContentLayout.ConditionalInstructions, SidebarContentLayout.DocumentSettings, SidebarContentLayout.Comments and SidebarContentLayout.About, the user can choose SidebarContentLayout.Custom to place a custom control as content. To disable setting any content for this Sidebar, set the property to SidebarContentLayout.None. The default value is SidebarContentLayout.None.

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

---

### Description

Determines the [content](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms/sidebar/content-property/llms-full.txt) [layout](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-windows-forms/sidebar/sidebarcontentlayout-enumeration/llms-full.txt) that has to be intialized and rendered for the Sidebar. Beside the predefined TextControl feature layouts `SidebarContentLayout.FieldNavigator`, `SidebarContentLayout.Find`, `SidebarContentLayout.Goto`, `SidebarContentLayout.Replace`, `SidebarContentLayout.Styles`, `SidebarContentLayout.TrackedChanges`, `SidebarContentLayout.ConditionalInstructions`, `SidebarContentLayout.DocumentSettings`, `SidebarContentLayout.Comments` and `SidebarContentLayout.About`, the user can choose `SidebarContentLayout.Custom` to place a custom control as content. To disable setting any content for this Sidebar, set the property to `SidebarContentLayout.None`. The default value is `SidebarContentLayout.None`.

### Syntax

```csharp
public Sidebar.SidebarContentLayout ContentLayout { get; set; }
```

```vbnet
Public Property ContentLayout As Sidebar.SidebarContentLayout
```

### Examples

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

```csharp
sidebar.ContentLayout = TXTextControl.Windows.Forms.Sidebar.SidebarContentLayout.Custom;
sidebar.Update();
```

```vbnet
sidebar.ContentLayout = TXTextControl.Windows.Forms.Sidebar.SidebarContentLayout.Custom
sidebar.Update()
```

### Remarks

The `SidebarContentLayout.Goto`, `SidebarContentLayout.Find`, `SidebarContentLayout.Replace`, `SidebarContentLayout.ConditionalInstructions`, `SidebarContentLayout.DocumentSettings` and `SidebarContentLayout.FieldNavigator` layouts differ due to the dock style setting. If the `Sidebar.Dock` property is set to `DockStyle.Left` or `DockStyle.Right`, a vertical alignment layout is shown. `DockStyle.Top` or `DockStyle.Botton` aligns the layout horizontally. If the Dock property is set to `DockStyle.Fill` or `DockStyle.None`, the sidebar's content is displayed in dialog style.

---

## Nearby

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