Share via


IVsMenuEditorSite.MoveItems Method

Definition

Moves one or more menu items to a new location.

public:
 int MoveItems(Microsoft::VisualStudio::Shell::Interop::IVsMenuItem ^ pIMIFirst, Microsoft::VisualStudio::Shell::Interop::IVsMenuItem ^ pIMILast, Microsoft::VisualStudio::Shell::Interop::IVsMenuItem ^ pIMIParent, Microsoft::VisualStudio::Shell::Interop::IVsMenuItem ^ pIMIInsertAfter);
public:
 int MoveItems(Microsoft::VisualStudio::Shell::Interop::IVsMenuItem ^ pIMIFirst, Microsoft::VisualStudio::Shell::Interop::IVsMenuItem ^ pIMILast, Microsoft::VisualStudio::Shell::Interop::IVsMenuItem ^ pIMIParent, Microsoft::VisualStudio::Shell::Interop::IVsMenuItem ^ pIMIInsertAfter);
int MoveItems(Microsoft::VisualStudio::Shell::Interop::IVsMenuItem const & pIMIFirst, Microsoft::VisualStudio::Shell::Interop::IVsMenuItem const & pIMILast, Microsoft::VisualStudio::Shell::Interop::IVsMenuItem const & pIMIParent, Microsoft::VisualStudio::Shell::Interop::IVsMenuItem const & pIMIInsertAfter);
public int MoveItems (Microsoft.VisualStudio.Shell.Interop.IVsMenuItem pIMIFirst, Microsoft.VisualStudio.Shell.Interop.IVsMenuItem pIMILast, Microsoft.VisualStudio.Shell.Interop.IVsMenuItem pIMIParent, Microsoft.VisualStudio.Shell.Interop.IVsMenuItem pIMIInsertAfter);
abstract member MoveItems : Microsoft.VisualStudio.Shell.Interop.IVsMenuItem * Microsoft.VisualStudio.Shell.Interop.IVsMenuItem * Microsoft.VisualStudio.Shell.Interop.IVsMenuItem * Microsoft.VisualStudio.Shell.Interop.IVsMenuItem -> int
Public Function MoveItems (pIMIFirst As IVsMenuItem, pIMILast As IVsMenuItem, pIMIParent As IVsMenuItem, pIMIInsertAfter As IVsMenuItem) As Integer

Parameters

pIMIFirst
IVsMenuItem

[In] A pointer to an object of type IVsMenuItem, representing the First Menu Item to move.

pIMILast
IVsMenuItem

[In] A pointer to an object of type IVsMenuItem, representing the Last Menu Item to move.

pIMIParent
IVsMenuItem

[In] A pointer to an object of type IVsMenuItem, containing information on the Parent Item to move

pIMIInsertAfter
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.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

[C++]

HRESULT IVsMenuEditorSite::MoveItems(  
   [in]IVsMenuItem *pIMIFirst,   
   [in]IVsMenuItem *pIMILast,   
   [in]IVsMenuItem *pIMIParent,   
   [in]IVsMenuItem *pIMIInsertAfter  
);  

Applies to