New to Telerik UI for WinForms? Start a free 30-day trial
Accessing DockWindows
Updated over 6 months ago
The DockWindows property returns an array of all DockWindow in a RadDock instance and gives you two useful properties and one method:
-
ToolWindows: Returns an array of ToolWindows.
-
DocumentWindows: Returns an array of DocumentWindows.
-
GetWindows(DockState state): Returns an array of DockWindows that are put in a specific DockState. For example, the following code snippet will return an array of DockWindows that are currently hidden:
C#
DockWindow[] hiddenWindows = radDock1.DockWindows.GetWindows(DockState.Hidden);
You can get a desired ToolWindow\DocumentWindow by specifying its Name as an index:
C#
DockWindow window1 = this.radDock1.DockWindows["Form1"];
// or simply
DockWindow window2 = this.radDock1["Form1"];
See Also
- AllowedDockStates
- Creating a RadDock at Runtime
- Creating ToolWindow and DocumentWindow at Runtime
- Customizing Floating Windows
- Customizing TabStrip Items
- Building an Advanced Layout at Runtime
- RadDock Properties and Methods
- Removing ToolWindow and DocumentWindow at Runtime
- Tabs and Captions
- ToolWindow and DocumentWindow Properties and Methods
- Tracking the ActiveWindow