IVsMenuEditorSite::MoveItems Method (IVsMenuItem^, IVsMenuItem^, IVsMenuItem^, IVsMenuItem^)
Visual Studio 2015
Moves one or more menu items to a new location.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
int MoveItems(
IVsMenuItem^ pIMIFirst,
IVsMenuItem^ pIMILast,
IVsMenuItem^ pIMIParent,
IVsMenuItem^ pIMIInsertAfter
)
Parameters
- pIMIFirst
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsMenuItem^
[In] A pointer to an object of type IVsMenuItem, representing the First Menu Item to move.
- pIMILast
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsMenuItem^
[In] A pointer to an object of type IVsMenuItem, representing the Last Menu Item to move.
- pIMIParent
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsMenuItem^
[In] A pointer to an object of type IVsMenuItem, containing information on the Parent Item to move
- pIMIInsertAfter
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsMenuItem^
[In] A pointer to an object of type IVsMenuItem, containing information on the Menu Item under which the other menu item(s) will be inserted.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell.idl:
[C++]
HRESULT IVsMenuEditorSite::MoveItems( [in]IVsMenuItem *pIMIFirst, [in]IVsMenuItem *pIMILast, [in]IVsMenuItem *pIMIParent, [in]IVsMenuItem *pIMIInsertAfter );
Show: