IVsMenuEditor::SelectionChange Method (IntPtr)

 

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.

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

int SelectionChange(
	IntPtr pIMI
)

Parameters

pIMI
Type: System::IntPtr

[in] The menu item.

Return Value

Type: System::Int32

If 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);

Return to top
Show: