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

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

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