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

LayoutGroup.CanMoveItem(LayoutItemDragController) Method

Returns whether the specified item can be moved to the specified new position.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public bool CanMoveItem(
    LayoutItemDragController controller
)

#Parameters

Name Type Description
controller LayoutItemDragController

A LayoutItemDragController object that contains information on the item that would be moved and the position that the item would be moved to.

#Returns

Type Description
Boolean

true if the specified item can be moved to the specified new position; otherwise, false.

#Remarks

Before moving an item to a new position, you can use the CanMoveItem property to check whether the item can be moved. To move an item use the BaseLayoutItem.Move method.

See Also