Udostępnij za pośrednictwem


IVsMonitorSelection2 Interface

Definition

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

public interface class IVsMonitorSelection2
public interface class IVsMonitorSelection2
__interface IVsMonitorSelection2
[System.Runtime.InteropServices.Guid("692E4F21-1EF2-41B1-9116-EED8DAA79E7F")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface IVsMonitorSelection2
[<System.Runtime.InteropServices.Guid("692E4F21-1EF2-41B1-9116-EED8DAA79E7F")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type IVsMonitorSelection2 = interface
Public Interface IVsMonitorSelection2
Attributes

Remarks

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.

Methods

GetElementID(Guid, UInt32)

Retrieves the element identifier for a VsPackage-defined Element of Selection.

GetEmptySelectionContext(IVsTrackSelectionEx)

Retrieves the empty selection context.

Applies to