IVsMonitorSelection2 Interface
Visual Studio 2015
Provides information about an empty context (when nothing is selected) and supports implementation of custom selection identifiers. Extends, but does not inherit from, IVsMonitorSelection.
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
| Name | Description | |
|---|---|---|
![]() | GetElementID(Guid, UInt32) | Retrieves the element identifier for a VsPackage-defined Element of Selection. |
![]() | GetEmptySelectionContext(IVsTrackSelectionEx) | Retrieves the empty selection context. |
In order to provide a custom selection identifier (VSConstants.VSSELELEMID), you need to define a GUID as a subkey in the registry under the SelectionElements section of the Visual Studio section.
Show:
