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.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
The IVsMonitorSelection type exposes the following members.
| Name | Description | |
|---|---|---|
|
AdviseSelectionEvents | Registers a VSPackage for selection event notification. |
|
GetCmdUIContextCookie | Registers a command UI context GUID and returns cookie value. |
|
GetCurrentElementValue | Returns the value for a particular element. |
|
GetCurrentSelection | Returns the current project hierarchy, project item, and selection container for the current selection. |
|
IsCmdUIContextActive | Determines whether a specific command UI context is active. |
|
SetCmdUIContext | Sets the state of the command UI context to active or inactive. |
|
UnadviseSelectionEvents | Cancels a registration for selection event notification. |