# RadDock Properties, Methods and Events

**RadDock** controls the overall behavior of **ToolWindows** and **DocumentWindows** that it manages. This includes enabling basic capabilities of docking, floating and hiding, handling tabbed document behavior, serialization of layout and providing access to collections of managed dockable objects.

## Properties

| **Properties**                   | Description                                                                                                                                                                                                                                                 |
| -------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **ActiveWindow**                 | Sets or gets the currently active DockWindow (ToolWindow or DocumentWindow)                                                                                                                                                                                 |
| **AutoDetectMdiChildren**        | Allows RadDock to automatically control MDI child windows of a parent form.                                                                                                                                                                                 |
| **DockWindows**                  | A collection of `IDockWindow` objects being managed by RadDock.                                                                                                                                                                                             |
| **DockWindows.ToolWindows**      | A collection of the ToolWindows being managed by  RadDock.                                                                                                                                                                                                  |
| **DockWindows.DocumentWindows**  | Gets a collection of the DocumentWindows being managed by RadDock.                                                                                                                                                                                          |
| **ActiveFloatingWindows**        | Gets a collections of the floating windows.                                                                                                                                                                                                                 |
|                                  |                                                                                                                                                                                                                                                             |
| **MdiChildren**                  | An array of MDI forms parented in the RadDock. This array is accessible at runtime.                                                                                                                                                                         |
| **MainDocumentContainerVisible** | Indicates whether main document container will be initially visible.                                                                                                                                                                                        |
| **QuickNavigatorSettings**       | This property give you an object of type QuickNavigatorSettings. This object gives you a full control over the [Quick Navigator](https://www.telerik.com/products/winforms/documentation/controls/dock/architecture-and-features/quick-navigator) features. |
| **AutoHideAnimation**            | Determines what animation will be used when displaying/hiding auto-hidden windows.                                                                                                                                                                          |
| **SplitterWidth**                | Gets or sets the width of all splitters.                                                                                                                                                                                                                    |

> note The tabs and captions properties are listed in the following article: [Tabs and Captions](https://www.telerik.com/products/winforms/documentation/controls/dock/object-model/tabs-and-captions)

## Methods

| **Methods**                                                                      | Description                                                                                                                                                                                                                                                                                            |                                                                                         |
| -------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------- |
| **ActivateWindow(DockWindow window)**                                            | Activates a DockWindow.                                                                                                                                                                                                                                                                                |                                                                                         |
| **AddDocument(DockWindow window)**                                               | Adds a DockWindow as a DocumentWindow.                                                                                                                                                                                                                                                                 |                                                                                         |
| **AutoHideWindow(DockWindow window)**                                            | Makes the specified DockWindow auto-hidden.                                                                                                                                                                                                                                                            |                                                                                         |
| **AutoHideWindows(IEnumerable\<DockWindow> windows, AutoHidePosition position)** | Makes the specified DockWindow collection auto-hidden.                                                                                                                                                                                                                                                 |                                                                                         |
| **CloseAllWindows()**                                                            | Closes all DockWindows. The **[CloseAction](https://www.telerik.com/products/winforms/documentation/controls/dock/object-model/removing-toolwindow-and-documentwindow-at-runtime)** property specifies whether a **ToolWindow/DocumentWindow** will be *Closed*, *ClosedAndDisposed* or just *Hidden*. |                                                                                         |
| **CloseWindow(DockWindow window)**                                               | Closes a specified ToolWindow or DocumentWindow.                                                                                                                                                                                                                                                       |                                                                                         |
| **DockWindow(DockWindow window, DockPosition position)**                         | Docks a DockWindow (ToolWindow/DocumentWindow) at the specified position.                                                                                                                                                                                                                              |                                                                                         |
| **DockWindow(DockWindow window, DockWindow target, DockPosition position)**      | Docks a DockWindow at a position relative to the specified target DockWindow.                                                                                                                                                                                                                          |                                                                                         |
| **FloatToolTabStrip(ToolTabStrip strip, Rectangle bounds)**                      | Floats a ToolTabStrip with ToolWindows in a new form. The form has bounds specified by the **bounds** parameter.                                                                                                                                                                                       |                                                                                         |
| **FloatWindow(DockWindow window)**                                               | Floats the specified DockWindow in a new form.                                                                                                                                                                                                                                                         |                                                                                         |
| **RemoveWindow(DockWindow window)**                                              | Removes a **ToolWindow** or **DocumentWindow** from the list of managed windows.                                                                                                                                                                                                                       |                                                                                         |
| **RemoveAllDocumentWindows**                                                     | Removes all DocumentWindows, without disposing it.                                                                                                                                                                                                                                                     |                                                                                         |
| **RemoveAllWindows**                                                             | Removes all DockWindows, without disposing them.                                                                                                                                                                                                                                                       |                                                                                         |
| \_\_RemoveAllToolWindows(DockWindowCloseAction.Close, AllowedDockState.Docked    | AllowedDockState.Hidden)\_\_                                                                                                                                                                                                                                                                           | Removes all ToolWindows with the specified DockState, using the specified close action. |

## Events

| **Events**                  | Description                                                                                                                                          |
| --------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
| **DockTabStripNeeded**      | Raised whenever a new DockTabStrip instance is needed internally by the framework.                                                                   |
| **PageViewInstanceCreated** | Fires after `RadPageViewElement` is created.                                                                                                         |
| **DockWindowAdded**         | Notifies for a new DockWindow registered with this RadDock instance.                                                                                 |
| **DockWindowRemoved**       | Notifies for a DockWindow removed from this RadDock instance. This event will not be raised for hidden windows.                                      |
| **DockWindowClosing**       | Allows you to cancel a close operation.                                                                                                              |
| **DockWindowClosed**        | Raised after a DockWindow has been closed.                                                                                                           |
| **DockStateChanging**       | Notifies for an upcoming change in the DockState of the associated window. Cancelable.                                                               |
| **DockStateChanged**        | Notifies for a change in the DockState of the associated window.                                                                                     |
| **ActiveWindowChanging**    | Notifies for an upcoming change of the ActiveWindow property. Cancelable.                                                                            |
| **ActiveWindowChanged**     | Notifies for an actual change of the ActiveWindow property.                                                                                          |
| **SelectedTabChanged**      | Occurs when selected tab is changed in the currently manipulated DockTabStrip.                                                                       |
| **SelectedTabChanging**     | Occurs before the selected tab is changed.                                                                                                           |
| **FloatingWindowCreated**   | Notifies that a FloatingWindow instance is internally created by the framework. Allows listeners to examine and optionally change the window itself. |

## 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)
* [Accessing DockWindows](https://www.telerik.com/products/winforms/documentation/controls/dock/object-model/accessing-dockwindows)
* [Removing ToolWindow and DocumentWindow at Runtime](https://www.telerik.com/products/winforms/documentation/controls/dock/object-model/removing-toolwindow-and-documentwindow-at-runtime)
* [Tabs and Captions](https://www.telerik.com/products/winforms/documentation/controls/dock/object-model/tabs-and-captions)
* [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)
