Export (0) Print
Expand All

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)

public interface IVsMonitorSelection

The IVsMonitorSelection type exposes the following members.

Public methodAdviseSelectionEventsRegisters a VSPackage for selection event notification.
Public methodGetCmdUIContextCookieRegisters a command UI context GUID and returns cookie value.
Public methodGetCurrentElementValueReturns the value for a particular element.
Public methodGetCurrentSelectionReturns the current project hierarchy, project item, and selection container for the current selection.
Public methodIsCmdUIContextActiveDetermines whether a specific command UI context is active.
Public methodSetCmdUIContextSets the state of the command UI context to active or inactive.
Public methodUnadviseSelectionEventsCancels 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.

© 2015 Microsoft