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

BaseLayoutItemCustomizationOptions.CanDrag() Method

Returns whether the layout item can be dragged-and-dropped to another position.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public bool CanDrag()

#Returns

Type Description
Boolean

true if the layout item can be dragged-and-dropped to another position; otherwise, false.

#Remarks

Use the BaseLayoutItemCustomizationOptions.AllowDrag property to enable or disable drag-and-drop for an item, or to specify that this feature is controled by the item’s parent. The CanDrag method returns the actual value that specifies whether drag-and-drop is enabled for the current item, taking into account the parent’s settings.

See Also