Skip to main content

TdxCustomDockControl.CanDock Method

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

Declaration

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