WindowEvents 接口
为环境中的“窗口”更改提供事件。 使用此对象实现功能,有关此对象的文档,请参考 WindowEventsClass。
命名空间: EnvDTE
程序集: EnvDTE(在 EnvDTE.dll 中)
语法
声明
<GuidAttribute("0D3A23A8-67BB-11D2-97C1-00C04FB6C6FF")> _
Public Interface WindowEvents _
Inherits _WindowEvents, _dispWindowEvents_Event
[GuidAttribute("0D3A23A8-67BB-11D2-97C1-00C04FB6C6FF")]
public interface WindowEvents : _WindowEvents,
_dispWindowEvents_Event
[GuidAttribute(L"0D3A23A8-67BB-11D2-97C1-00C04FB6C6FF")]
public interface class WindowEvents : _WindowEvents,
_dispWindowEvents_Event
[<GuidAttribute("0D3A23A8-67BB-11D2-97C1-00C04FB6C6FF")>]
type WindowEvents =
interface
interface _WindowEvents
interface _dispWindowEvents_Event
end
public interface WindowEvents extends _WindowEvents, _dispWindowEvents_Event
WindowEvents 类型公开以下成员。
方法
名称 | 说明 | |
---|---|---|
add_WindowActivated | 基础结构。仅由 Microsoft 内部使用。 (继承自 _dispWindowEvents_Event。) | |
add_WindowClosing | 基础结构。仅由 Microsoft 内部使用。 (继承自 _dispWindowEvents_Event。) | |
add_WindowCreated | 基础结构。仅由 Microsoft 内部使用。 (继承自 _dispWindowEvents_Event。) | |
add_WindowMoved | 基础结构。仅由 Microsoft 内部使用。 (继承自 _dispWindowEvents_Event。) | |
remove_WindowActivated | 基础结构。仅由 Microsoft 内部使用。 (继承自 _dispWindowEvents_Event。) | |
remove_WindowClosing | 基础结构。仅由 Microsoft 内部使用。 (继承自 _dispWindowEvents_Event。) | |
remove_WindowCreated | 基础结构。仅由 Microsoft 内部使用。 (继承自 _dispWindowEvents_Event。) | |
remove_WindowMoved | 基础结构。仅由 Microsoft 内部使用。 (继承自 _dispWindowEvents_Event。) |
页首
事件
名称 | 说明 | |
---|---|---|
WindowActivated | 基础结构。仅由 Microsoft 内部使用。 (继承自 _dispWindowEvents_Event。) | |
WindowClosing | 基础结构。仅由 Microsoft 内部使用。 (继承自 _dispWindowEvents_Event。) | |
WindowCreated | 基础结构。仅由 Microsoft 内部使用。 (继承自 _dispWindowEvents_Event。) | |
WindowMoved | 基础结构。仅由 Microsoft 内部使用。 (继承自 _dispWindowEvents_Event。) |
页首
备注
DTE.Events 返回 WindowEvents 对象。
示例
<System.ContextStaticAttribute()> Public WithEvents WindowEvents As EnvDTE.WindowEvents
Public Sub WindowEvents_WindowActivated(ByVal GotFocus As EnvDTE.Window, ByVal LostFocus As EnvDTE.Window) Handles WindowEvents.WindowActivated
MsgBox("test")
End Sub