允许 VSPackage 侦听某些事件与包含一 IVsCodeWindow 对象的视图。
命名空间: Microsoft.VisualStudio.TextManager.Interop
程序集: Microsoft.VisualStudio.TextManager.Interop(在 Microsoft.VisualStudio.TextManager.Interop.dll 中)
语法
声明
<InterfaceTypeAttribute()> _
<GuidAttribute("26ACC7FD-C665-426B-B120-E96762C5DD1A")> _
Public Interface IVsCodeWindowEvents
[InterfaceTypeAttribute()]
[GuidAttribute("26ACC7FD-C665-426B-B120-E96762C5DD1A")]
public interface IVsCodeWindowEvents
[InterfaceTypeAttribute()]
[GuidAttribute(L"26ACC7FD-C665-426B-B120-E96762C5DD1A")]
public interface class IVsCodeWindowEvents
[<InterfaceTypeAttribute()>]
[<GuidAttribute("26ACC7FD-C665-426B-B120-E96762C5DD1A")>]
type IVsCodeWindowEvents = interface end
public interface IVsCodeWindowEvents
IVsCodeWindowEvents 类型公开以下成员。
方法
名称 | 说明 | |
---|---|---|
![]() |
OnCloseView | 调用时,视图关闭。 |
![]() |
OnNewView | 调用,在视图中创建了。 |
页首
备注
此接口用于获取代码窗口管理器 (特别是,新视图并关闭的视图) 通常处理的某些视图中编辑操作。
对实现者的说明
实现在实现 IVsCodeWindow 接口接收新视图并关闭的事件在代码窗口中的同一类的此接口。 ,如果实现具有 IVsCodeWindowManager 接口的,则代码窗口管理器不需要实现此接口。
对调用者的说明
此接口可以通过调用 IVsCodeWindow 接口的 QueryInterface 方法获取。 请注意 IVsCodeWindowEvents 接口是可选的,并且可能不存在特定 IVsCodeWindow 对象。