Back to Devexpress

TdxZone.CanDock(TdxCustomDockControl) Method

vcl-dxdockcontrol-dot-tdxzone-dot-candock-x28-dxdockcontrol-dot-tdxcustomdockcontrol-x29.md

latest1.9 KB
Original Source

TdxZone.CanDock(TdxCustomDockControl) Method

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

Declaration

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

Parameters

NameType
AControlTdxCustomDockControl

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

TdxCustomDockControl.AllowDock

TdxCustomDockControl.AllowDockClients

TdxCustomDockControl.CanDock

TdxCustomDockControl.CanDockHost

TdxZone Class

TdxZone Members

dxDockControl Unit