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

BaseLayoutItem.Move(BaseLayoutItem, InsertType, MoveType) Method

Moves the item to the specified visual position within the LayoutControl.

Namespace: DevExpress.XtraLayout

Assembly: DevExpress.XtraLayout.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public virtual bool Move(
    BaseLayoutItem baseItem,
    InsertType insertType,
    MoveType moveType
)

#Parameters

Name Type Description
baseItem BaseLayoutItem

A BaseLayoutItem descendant that represents the layout item within the LayoutControl.

insertType InsertType

The item’s new position relative to the baseItem.

moveType MoveType

A MoveType enumeration value that specifies how a layout item is inserted in another position.

#Returns

Type Description
Boolean

true if the item was successfully moved to a new position; otherwise, false.

#Remarks

The following code moves layoutControlItem1 to the right of layoutControlItem2:

layoutControlItem1.Move(layoutControlItem2, DevExpress.XtraLayout.Utils.InsertType.Right, MoveType.Inside);
See Also