Skip to main content

TdxDockingController.DockManagers Property

Provides indexed access to docking manager components.

Declaration

property DockManagers[Index: Integer]: TdxDockingManager read;

Property Value

Type
TdxDockingManager

Remarks

Each form can hold a single TdxDockingManager component. Once such a component is placed onto a form, it is automatically added to the DockManagers collection. Destroying a docking manager component results in the corresponding collection item being removed.

Use the DockManagers property to access the registered docking managers by their indexes. The desired component’s index should be passed as the Index parameter. Note that the first registered manager’s index is zero. The last manager’s index is the DockManagerCount property value decremented by one. Specifying an invalid index will raise an exception.

The DockManagers property can be used in combination with the DockManagerCount property to traverse through all the docking managers registered. This can be used when you need to change settings for all controls in the application. For instance, you may need to change the dock controls’ paint style and thus, will need to change each manager’s LookAndFeel property.

See Also