Skip to main content

LayoutGroup.CanMoveItem(LayoutItemDragController) Method

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

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v24.1.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