Programmer's Guide > Interfaces > Window interface > dockTo method
  
dockTo method
Docks the window to the specified location.
dockTo(dockState, x, y)
Parameters
DockStatedockState
The manner in which the window is about to dock.
intx
The X coordinate to dock to. If the window is set to float, this value is in screen coordinates. If the window is set to dock, this value is related to the upper left corner of the dock bar to which the window docks.
inty
The Y coordinate to dock to. If the window is set to float, this value is in screen coordinates. If the window is set to dock, this value is related to the upper left corner of the dock bar to which the window docks.
Returns
void
Throws
WindowException
NO_DOCKING_ALLOWED_ERR: Raised if the window is not dockable.
INVALID_DOCKING_ERR: Raised if dock location is not enabled.