Xceed Docking Windows for WinForms v2.3 Documentation
DockTo(ToolWindow,DockPosition) Method


Xceed.DockingWindows Namespace > ToolWindow Class > DockTo Method : DockTo(ToolWindow,DockPosition) Method
A reference to the ToolWindow with which to dock the ToolWindow. Cannot be a null reference (Nothing in Visual Basic).
A DockPosition value indicating the position where the ToolWindow will be docked.
Docks the ToolWindow with the specified ToolWindow.
Syntax
'Declaration
 
Public Overloads Sub DockTo( _

   ByVal targetWindow As ToolWindow, _

   ByVal position As DockPosition _

) 
'Usage
 
Dim instance As ToolWindow

Dim targetWindow As ToolWindow

Dim position As DockPosition

 

instance.DockTo(targetWindow, position)
public void DockTo( 

   ToolWindow targetWindow,

   DockPosition position

)

Parameters

targetWindow
A reference to the ToolWindow with which to dock the ToolWindow. Cannot be a null reference (Nothing in Visual Basic).
position
A DockPosition value indicating the position where the ToolWindow will be docked.
Remarks

The ToolWindow that is being docked will be "attached" to the target ToolWindow meaning:

- The State of the ToolWindow will be changed to the target ToolWindow's state

- If the target ToolWindow is docked, the current ToolWindow will be docked around it or it will be grouped with the target ToolWindow.

- If the target ToolWindow is floating, the current ToolWindow will be docked around or grouped with the target ToolWindow however its state will be floating rather than docked.

- If the target ToolWindow is in an auto hide state, the current ToolWindow will appear in the same tab group in the AutoHideFrameAppearance.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ToolWindow Class
ToolWindow Members
Overload List