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

Returns a value indicating whether the control can be docked to other controls.

#Declaration

Delphi
function CanDock: Boolean; virtual;

#Returns

Type
Boolean

#Remarks

The value returned by the CanDock method indicates whether docking operations on the control are allowed. In other words, it determines whether the control’s DockTo method can succeed.

As implemented in the TdxCustomDockControl class, the CanDock method simply returns False. The TdxDockPanel and TdxContainerDockSite classes override this method to return True.

Most commonly, you will have no need to use this method in applications.

See Also