Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

IVsMenuEditor.SelectionChange Method

Called whenever the selection changes. If pIMI is NULL, no menu item is selected. If it is non a null reference (Nothing in Visual Basic), 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 below for that behavior.

Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in microsoft.visualstudio.shell.interop.dll)

int SelectionChange (
	[InAttribute] IntPtr pIMI
)
int SelectionChange (
	/** @attribute InAttribute() */ IntPtr pIMI
)
function SelectionChange (
	pIMI : IntPtr
) : int

Parameters

pIMI

[in]

Return Value

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

Community Additions

ADD
Show:
© 2015 Microsoft