This topic has not yet been rated - Rate this topic

IVsMonitorSelection2 Interface

Provides information about an empty context (when nothing is selected) and supports implementation of custom selection identifiers. Extends, but does not inherit from, IVsMonitorSelection.

Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in microsoft.visualstudio.shell.interop.8.0.dll)

[GuidAttribute("692E4F21-1EF2-41B1-9116-EED8DAA79E7F")] 
[InterfaceTypeAttribute(1)] 
public interface IVsMonitorSelection2
/** @attribute GuidAttribute("692E4F21-1EF2-41B1-9116-EED8DAA79E7F") */ 
/** @attribute InterfaceTypeAttribute(1) */ 
public interface IVsMonitorSelection2
GuidAttribute("692E4F21-1EF2-41B1-9116-EED8DAA79E7F") 
InterfaceTypeAttribute(1) 
public interface IVsMonitorSelection2

In order to provide a custom selection identifier (VSSELELEMID), you need to define a GUID as a subkey in the registry under the SelectionElements section of the Visual Studio section.

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