Skip to main content

TdxZone.CanDock(TdxCustomDockControl) Method

Returns a value indicating whether the specified control can be docked to the zone.

Declaration

function CanDock(AControl: TdxCustomDockControl): Boolean; virtual;

Parameters

Name Type
AControl TdxCustomDockControl

Returns

Type
Boolean

Remarks

The CanDock method returns True if the control specified by the AControl parameter can be docked to the zone. Otherwise, the method returns False. Actually, the method’s return value is the return value of its owning control’s CanDockHost method. The specified control and the DockType property value of the zone are passed to the CanDockHost method as parameters.

The CanDock method is used internally to determine whether the control being dragged can be docked to the dock zone residing under it. Usually, you will have no need to use it in applications.

See Also