IVsMenuEditor.SelectionChangeFocus(IVsMenuItem) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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);