Partager via


IVsMenuEditor.SelectionChangeFocus(IVsMenuItem) Method

Definition

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

public:
 int SelectionChangeFocus(Microsoft::VisualStudio::Shell::Interop::IVsMenuItem ^ pIMI);
public:
 int SelectionChangeFocus(Microsoft::VisualStudio::Shell::Interop::IVsMenuItem ^ pIMI);
int SelectionChangeFocus(Microsoft::VisualStudio::Shell::Interop::IVsMenuItem const & pIMI);
public int SelectionChangeFocus (Microsoft.VisualStudio.Shell.Interop.IVsMenuItem pIMI);
abstract member SelectionChangeFocus : Microsoft.VisualStudio.Shell.Interop.IVsMenuItem -> int
Public Function SelectionChangeFocus (pIMI As IVsMenuItem) As Integer

Parameters

pIMI
IVsMenuItem

[in] The menu item.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

C++

From vsshell.idl:

HRESULT IVsMenuEditor::SelectionChangeFocus([in]IVsMenuItem *pIMI);

Applies to