Skip to main content

TdxCustomDockControl.LayoutDockSite Property

Provides access to the neighboring layout dock site.

Declaration

property LayoutDockSite: TdxLayoutDockSite read;

Property Value

Type
TdxLayoutDockSite

Remarks

When a control is docked to a dock site, a layout site is created to fill the area not occupied by the control. You can use the LayoutDockSite property of the docked control to obtain its neighboring layout site. This property allows you to modify the appearance and behavior of the layout site obtained or to access dock controls residing on it.

If the control has no neighboring layout site (it is floating or included within a tab container or side container), the LayoutDockSite property returns nil.

If you need to perform particular actions on layout sites as they are created or provide default property values you can:

  • Handle the OnCreateLayoutSite event of the docking manager. It fires whenever a layout site is created in your application;

  • Handle the OnCreateLayoutSite event of a particular dock control. It fires when a layout site is created for the dock control;

  • Use the DefaultLayoutSiteProperties property of the docking manager.

See Also