Skip to main content

TdxCustomDockControl.ChildCount Property

Gets the number of dock controls owned by the dock control.

Declaration

property ChildCount: Integer read;

Property Value

Type
Integer

Remarks

Use the ChildCount property to determine the number of immediate children of the dock control. This property can be used in combination with the Children property. The latter provides indexed access to child dock sites. The index of the first child is 0. The index of the last child is the ChildCount property value decremented by one.

Do not confuse the ChildCount property value with the number of panels visually residing on the current dock control. Suppose a side container contains a tab container and a panel. In this case, the ChildCount property of the side container will return 2 regardless of the number of panels within the tab container. The number of panels within the tab container can be obtained by reading its ChildCount property in turn.

Please refer to the Dock Sites, Float Sites, Layout Sites, Tab Container Sites and Side Container Sites topics for information on how dock controls are arranged when docking them to each other.

See Also