IVsMenuEditorSite::SelectionChange Method (IntPtr, VSMESELCMD)
Visual Studio 2015
Called when the selection changes.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Parameters
- ppIMI
-
Type:
System::IntPtr
[In] A pointer to a pointer to an object of type IVsMenuItem representing the item to watch for a selection change.
- SelCmd
-
Type:
Microsoft.VisualStudio.Shell.Interop::VSMESELCMD
[In] An object of type VSMESELCMD.
Return Value
Type: System::Int32SelectionChange() 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.
From vsshell.idl:
[C++]
HRESULT IVsMenuEditorSite::SelectionChange( [in]IVsMenuItem **ppIMI, [in]VSMESELCMD SelCmd );
Show: