Partager via


IVsMenuEditor.SelectionChange(IntPtr) Method

Definition

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.

public:
 int SelectionChange(IntPtr pIMI);
public int SelectionChange (IntPtr pIMI);
abstract member SelectionChange : nativeint -> int
Public Function SelectionChange (pIMI As IntPtr) As Integer

Parameters

pIMI
IntPtr

nativeint

[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::SelectionChange([in]IVsMenuItem *pIMI);

Applies to