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.Close Method

In This Article

Closes the dock control.

#Declaration

Delphi
procedure Close;

#Remarks

The behavior of the Close method depends on the control for which it is called and options specified by the Options property of the docking manager. The list below describes possible actions performed by this method:

  • If the Close method is called for any dock control except tab containers, its behavior depends on the doFreeOnClose and doUndockOnClose options. If the doFreeOnClose option is enabled, the control is destroyed when closed. If the doUndockOnClose option is enabled, the control is undocked when closed (see the UnDock method description for details). If neither of these options are enabled, the control is simply hidden (its Visible property is set to False).

  • If the Close method is called for a tab container, its behavior depends on the doTabContainerCanClose option. If the option is enabled, the Close method closes the tab container as for other dock controls. Otherwise, the method closes the active child of the tab container.

See Also