IVsMenuEditorSite.MoveItems Method
Moves one or more menu items to a new location.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaration
Function MoveItems ( _
pIMIFirst As IVsMenuItem, _
pIMILast As IVsMenuItem, _
pIMIParent As IVsMenuItem, _
pIMIInsertAfter As IVsMenuItem _
) As Integer
int MoveItems(
IVsMenuItem pIMIFirst,
IVsMenuItem pIMILast,
IVsMenuItem pIMIParent,
IVsMenuItem pIMIInsertAfter
)
int MoveItems(
[InAttribute] IVsMenuItem^ pIMIFirst,
[InAttribute] IVsMenuItem^ pIMILast,
[InAttribute] IVsMenuItem^ pIMIParent,
[InAttribute] IVsMenuItem^ pIMIInsertAfter
)
abstract MoveItems :
pIMIFirst:IVsMenuItem *
pIMILast:IVsMenuItem *
pIMIParent:IVsMenuItem *
pIMIInsertAfter:IVsMenuItem -> int
function MoveItems(
pIMIFirst : IVsMenuItem,
pIMILast : IVsMenuItem,
pIMIParent : IVsMenuItem,
pIMIInsertAfter : IVsMenuItem
) : int
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: Int32
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
);
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.