# Tabs and Captions

| RELATED VIDEOS                                                                                                                                                                                                                                                                                                                                  |                                                                                                                                                                                            |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [RadDock Tab Alignment/Visibility and Automation](http://tv.telerik.com/watch/winforms/raddock/raddock-tab-alignmentvisibility-automation)In this video, you will learn about some of the new features provided in the R3 2009 release of the RadDock. These features include tab alignment and visibility as well as drag and drop automation. | ![WinForms RadDock Tabs and Captions Tutorial](https://www.telerik.com/products/winforms/documentation/assets/a31287eba92d437ae59100e811f7ae35/dock-object-model-tabs-and-captions007.png) |

**RadDock** exposes several properties which allow you to have full control over the visibility and the position of the tabs/captions:

* **DocumentTabAlignment:** defines the position of the tabs for all `DocumentTabStrip` instances in **RadDock**.

#### Setting DocumentTabsAlignment to Left

```C#
this.radDock1.DocumentTabsAlignment = TabStripAlignment.Left;
```

```VB.NET
Me.RadDock1.DocumentTabsAlignment = TabStripAlignment.Left
```

![WinForms RadDock Left DocumentTabsAlignment](https://www.telerik.com/products/winforms/documentation/assets/64adc1ebacb7fffa91c7d733737a02c5/dock-object-model-tabs-and-captions001.png)

* **DocumentTabsVisible:** allows you to hide/show all document tabs:

#### Hiding the document tabs

```C#
this.radDock1.DocumentTabsVisible = false;
```

```VB.NET
Me.RadDock1.DocumentTabsVisible = False
```

![WinForms RadDock Hiding Document Tabs](https://www.telerik.com/products/winforms/documentation/assets/3cdcea42cad7e13590d3941e02fe4881/dock-object-model-tabs-and-captions002.png)

* **ToolTabAlignment:** defines the position of the tabs for all **ToolTabStrip** instances in **RadDock**:

#### Setting the ToolTabsAlignment to Right

```C#
this.radDock1.ToolTabsAlignment = TabStripAlignment.Right;
```

```VB.NET
Me.RadDock1.ToolTabsAlignment = TabStripAlignment.Right
```

![WinForms RadDock ToolTabsAlignment Right](https://www.telerik.com/products/winforms/documentation/assets/0a295c2af93e46f3782acfb87c5220dc/dock-object-model-tabs-and-captions003.png)

* **ToolTabsVisible:** allows you to hide/show all tool tabs.

#### Hiding the tool tabs

```C#
this.radDock1.ToolTabsVisible = false;
```

```VB.NET
Me.RadDock1.ToolTabsVisible = False
```

![WinForms RadDock Hiding Tool Tabs](https://www.telerik.com/products/winforms/documentation/assets/730d7466ae9bbec8431329edc96602cc/dock-object-model-tabs-and-captions004.png)

* **CaptionVisible:** allows you to hide the caption of a single **ToolTabStrip**.

#### Hiding the caption of ToolTabStrip

```C#
this.toolTabStrip1.CaptionVisible = false;
```

```VB.NET
Me.ToolTabStrip1.CaptionVisible = False
```

![WinForms RadDock Hinding Caption ToolTabStrip](https://www.telerik.com/products/winforms/documentation/assets/48b1e5038b504eaa0a6ad026b4b0a6eb/dock-object-model-tabs-and-captions005.png)

* **ShowToolCloseButton and ShowDocumentCloseButton:**  displays/hides close buttons in the **ToolWindow**/**DocumentWindow** tabs.

#### Showing close buttons

```C#
this.radDock1.ShowToolCloseButton = true;
this.radDock1.ShowDocumentCloseButton = true;
```

```VB.NET
Me.RadDock1.ShowToolCloseButton = True
Me.RadDock1.ShowDocumentCloseButton = True
```

![WinForms RadDock Showing Close Buttons](https://www.telerik.com/products/winforms/documentation/assets/c6c17fc0ffcc874242836dd398f2a0e8/dock-object-model-tabs-and-captions006.png)

## See Also

* [AllowedDockStates](https://www.telerik.com/products/winforms/documentation/controls/dock/object-model/alloweddockstates)
* [Creating a RadDock at Runtime](https://www.telerik.com/products/winforms/documentation/controls/dock/object-model/creating-a-raddock-at-runtime)
* [ Creating ToolWindow and DocumentWindow at Runtime](https://www.telerik.com/products/winforms/documentation/controls/dock/object-model/creating-toolwindow-and-documentwindow-at-runtime)
* [Customizing Floating Windows](https://www.telerik.com/products/winforms/documentation/controls/dock/object-model/customizing-floating-windows)
* [Customizing TabStrip Items](https://www.telerik.com/products/winforms/documentation/controls/dock/object-model/customizing-tabstrip-items)
* [Building an Advanced Layout at Runtime](https://www.telerik.com/products/winforms/documentation/controls/dock/object-model/example-building-an-advanced-layout-at-runtime)
* [RadDock Properties and Methods](https://www.telerik.com/products/winforms/documentation/controls/dock/object-model/raddock-properties-and-methods)
* [Removing ToolWindow and DocumentWindow at Runtime](https://www.telerik.com/products/winforms/documentation/controls/dock/object-model/removing-toolwindow-and-documentwindow-at-runtime)
* [Accessing DockWindows](https://www.telerik.com/products/winforms/documentation/controls/dock/object-model/accessing-dockwindows)
* [ToolWindow and DocumentWindow Properties and Methods](https://www.telerik.com/products/winforms/documentation/controls/dock/object-model/toolwindow-and-documentwindow-properties-and-methods)
* [Tracking the ActiveWindow](https://www.telerik.com/products/winforms/documentation/controls/dock/object-model/tracking-the-activewindow)
