Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxCustomDockControl.LayoutDockSite Property

Provides access to the neighboring layout dock site.

#Declaration

Delphi
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