IVsMenuEditorSite::SelectionChange Method (IntPtr, VSMESELCMD)

 

Called when the selection changes.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

int SelectionChange(
	IntPtr ppIMI,
	VSMESELCMD SelCmd
)

Parameters

ppIMI
Type: System::IntPtr

[In] A pointer to a pointer to an object of type IVsMenuItem representing the item to watch for a selection change.

SelCmd
Type: Microsoft.VisualStudio.Shell.Interop::VSMESELCMD

[In] An object of type VSMESELCMD.

Return Value

Type: System::Int32

SelectionChange() takes an array from IVsMenuItem, but supports receiving this only if the sel command is SELCMD_SELCHANGE, since you cannot view code or properties for multiple items.

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

From vsshell.idl:

[C++]

HRESULT IVsMenuEditorSite::SelectionChange(
   [in]IVsMenuItem **ppIMI, 
   [in]VSMESELCMD SelCmd
);
Return to top
Show: