CommandPopupMenu<T>.MoveMenuItem(DXMenuItem, Int32) Method

Moves a menu item to a specified position.

Namespace: DevExpress.Utils.Menu

Assembly: DevExpress.Utils.v20.2.dll


public void MoveMenuItem(
    DXMenuItem item,
    int to
Public Sub MoveMenuItem(
    item As DXMenuItem,
    to As Integer


Name Type Description
item DXMenuItem

A DXMenuItem object that is the menu item.

to Int32

An integer that is the position of a menu item within the menu object.


Changes the order of menu items so that the specified menu item is placed to the specified position. The position is a zero-based index.

To move a menu item only if it is a submenu, use the CommandPopupMenu<T>.MoveSubMenuItem method.

See Also