IVsMenuEditorSite.SelectionChange Method

Called when the selection changes.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'Declaration
Function SelectionChange ( _
    ppIMI As IntPtr, _
    SelCmd As VSMESELCMD _
) As Integer
int SelectionChange(
    IntPtr ppIMI,
    VSMESELCMD SelCmd
)
int SelectionChange(
    [InAttribute] IntPtr ppIMI, 
    [InAttribute] VSMESELCMD SelCmd
)
abstract SelectionChange : 
        ppIMI:IntPtr * 
        SelCmd:VSMESELCMD -> int
function SelectionChange(
    ppIMI : IntPtr, 
    SelCmd : VSMESELCMD
) : int

Parameters

  • ppIMI
    Type: IntPtr

    [In] A pointer to a pointer to an object of type IVsMenuItem representing the item to watch for a selection change.

Return Value

Type: Int32
SelectionChange() takes an array from IVsMenuItem, but supports receiving this only if the sel command is SELCMD_SELCHANGE, since you cannot view code or properties for multiple items.
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::SelectionChange(
   [in]IVsMenuItem **ppIMI, 
   [in]VSMESELCMD SelCmd
);

.NET Framework Security

See Also

Reference

IVsMenuEditorSite Interface

Microsoft.VisualStudio.Shell.Interop Namespace