BaseLayoutItem.Move(BaseLayoutItem, InsertType, MoveType) Method
Moves the item to the specified visual position within the LayoutControl.
Namespace: DevExpress.XtraLayout
Assembly: DevExpress.XtraLayout.v18.2.dll
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 | DevExpress.XtraLayout.Utils.InsertType | A DevExpress.XtraLayout.Utils.InsertType enumeration value that specifies the position of the new group relative to the specified baseItem. |
moveType | MoveType | A MoveType enumeration value that specifies how a layout item is inserted to another position. |
Returns
Type | Description |
---|---|
Boolean | true, if the item has been 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