IVsMonitorSelection Interface

 

Enables VSPackages to receive notification of selection events and to get information about the current project hierarchy, item, element value, and command UI context.

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

<GuidAttribute("55AB9450-F9C7-4305-94E8-BEF12065338D")>
<InterfaceTypeAttribute(1)>
Public Interface IVsMonitorSelection

NameDescription
System_CAPS_pubmethodAdviseSelectionEvents(IVsSelectionEvents, UInt32)

Registers a VSPackage for selection event notification.

System_CAPS_pubmethodGetCmdUIContextCookie(Guid, UInt32)

Registers a command UI context GUID and returns cookie value.

System_CAPS_pubmethodGetCurrentElementValue(UInt32, Object)

Returns the value for a particular element.

System_CAPS_pubmethodGetCurrentSelection(IntPtr, UInt32, IVsMultiItemSelect, IntPtr)

Returns the current project hierarchy, project item, and selection container for the current selection.

System_CAPS_pubmethodIsCmdUIContextActive(UInt32, Int32)

Determines whether a specific command UI context is active.

System_CAPS_pubmethodSetCmdUIContext(UInt32, Int32)

Sets the state of the command UI context to active or inactive.

System_CAPS_pubmethodUnadviseSelectionEvents(UInt32)

Cancels a registration for selection event notification.

Notes to Callers:

This interface is implemented by the Visual Studio Shell. You can get it from the SVsShellMonitorSelection service.

Return to top
Show: