API Documentation > CorelDRAW > 2025-v26
DockHost class
DockHost class
Syntax:
Class DockHost
Remarks:
The DockHost class represents a linear docking region that can host one or more items which, in turn, could be DockHost or ViewHost items. A DockHost can be either horizontal or vertical. To create complicated two-dimensional layouts, you must nest the DockHosts.
Properties:
Name Description
Children Returns a collection of immediate dock items contained within the dock host
DockItem Returns the DockItem object representation of the dock host
ID Returns the ID of the dock host
Orientation Returns the orientation of the dock host
ParentDockHost Returns the parent dock host
Position Returns the position and size of the dock host on the screen
Methods:
Name Description
InsertView Creates a child view host and inserts the view ito it
InsertViewHost Inserts a child view host into the existing dock host