This topic has not yet been rated - Rate this topic

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()]
public interface IVsMonitorSelection

The IVsMonitorSelection type exposes the following members.

  Name Description
Public method AdviseSelectionEvents Registers a VSPackage for selection event notification.
Public method GetCmdUIContextCookie Registers a command UI context GUID and returns cookie value.
Public method GetCurrentElementValue Returns the value for a particular element.
Public method GetCurrentSelection Returns the current project hierarchy, project item, and selection container for the current selection.
Public method IsCmdUIContextActive Determines whether a specific command UI context is active.
Public method SetCmdUIContext Sets the state of the command UI context to active or inactive.
Public method UnadviseSelectionEvents Cancels a registration for selection event notification.
Top

Notes to Callers

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

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ