Skip to main content

TdxCustomDockControl.Container Property

Returns the immediate container of the dock control.

Declaration

property Container: TdxContainerDockSite read;

Property Value

Type
TdxContainerDockSite

Remarks

Use the Container property to access the container dock site that owns this dock control. The image below illustrates the Container property. It shows the Object TreeView window and the corresponding visual dock controls structure. Note that the Container property will return the tab container for panels residing in it. The vertical side container owns the other panels and the tab container.

Note

if the parent dock control is not a container (not a side container or tab container), the Container property will return nil. In this case, you can use the ParentDockControl property to access the immediate parent of the dock control. If the immediate parent is a container, these properties return the same values.

Use the Container property if you are not sure that the dock control is within a container or don’t know the container’s type. Otherwise, you can use the SideContainer or TabContainer properties to obtain the owning container.

The Container property can be useful when you need to modify the container’s settings or to access dock controls residing within the same container as the current one. Use the Children property of the container obtained to access its children.

See Also