IVsSelectionEvents 接口
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
通知注册的 Vspackage 当前选择、元素值或命令 UI 上下文的更改。
public interface class IVsSelectionEvents
public interface class IVsSelectionEvents
__interface IVsSelectionEvents
[System.Runtime.InteropServices.Guid("82871589-D680-4D86-B969-9D1102B00F6F")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface IVsSelectionEvents
[<System.Runtime.InteropServices.Guid("82871589-D680-4D86-B969-9D1102B00F6F")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type IVsSelectionEvents = interface
Public Interface IVsSelectionEvents
- 属性
注解
若要接收通知,必须先 SVsShellMonitorSelection 通过调用向服务注册 AdviseSelectionEvents 。 pSink此方法的参数包含指向接口的指针 IVsSelectionEvents 。
中的每种方法都 IVsSelectionEvents 报告不同类型的更改。 例如,当当前选定内容更改时,将 OnSelectionChanged 调用方法。
实施者说明
Vspackage 实现 IVsSelectionEvents ,以便能够跟踪环境中的选定内容。