Skip to main content

TdxCustomDockControl.DockZones Property

Returns the list of dock zones owned by this dock control.

Declaration

property DockZones: TdxZoneList read;

Property Value

Type
TdxZoneList

Remarks

Each dock control owns a list of dock zones. Dock zones specify rectangles within the dock control’s client area and the action performed when docking another control within a rectangle. Please refer to the TdxZone class description and the Dock Zones topic for more information regarding dock zones.

You can use the DockZones property to add or remove dock zones. Note that the order of dock zones in the collection is important, since they are processed in the order they appear in the collection. For instance, if the first dock zone within the collection occupies the entire dock control’s client area, no other dock zones will be processed. In other words, if a point is within more than one dock zone, the dock zone with a smaller index in the collection will be processed.

Note that the list of dock zones is recalculated each time the layout of dock controls changes. Thus, if you need to modify the dock zone list, you need to perform the modification with every recalculation. This can be achieved by handling the OnUpdateDockZones event.

See Also