This documentation is archived and is not being maintained.

IVsMenuEditor.SelectionChangeFocus Method

Same as SelectionChange, except this method also sets focus to the selected item.

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

int SelectionChangeFocus (
	[InAttribute] IVsMenuItem pIMI
)
int SelectionChangeFocus (
	/** @attribute InAttribute() */ IVsMenuItem pIMI
)
function SelectionChangeFocus (
	pIMI : IVsMenuItem
) : 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::SelectionChangeFocus([in]IVsMenuItem *pIMI);

Show: