IVsMenuEditor::SelectionChange Method (IntPtr)
Visual Studio 2015
Called whenever the selection changes. If pIMI is null, no menu item is selected. If it is not null, it points to the item to be selected. Only one item can be selected at a time from outside MenuDesigner. This method does not set focus to the item; see the SetFocus method for that behavior.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Parameters
- pIMI
-
Type:
System::IntPtr
[in] The menu item.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
C++
From vsshell.idl:
HRESULT IVsMenuEditor::SelectionChange([in]IVsMenuItem *pIMI);
Show: