WindowEventsClass.WindowCreated 事件

此 API 支持 .NET Framework 基础结构,不适合在代码中直接使用。

当创建新窗口时发生。

命名空间:  EnvDTE
程序集:  EnvDTE(在 EnvDTE.dll 中)

语法

声明
Public Overridable Event WindowCreated As _dispWindowEvents_WindowCreatedEventHandler
public virtual event _dispWindowEvents_WindowCreatedEventHandler WindowCreated
public:
virtual   event _dispWindowEvents_WindowCreatedEventHandler^ WindowCreated {
    void add (_dispWindowEvents_WindowCreatedEventHandler^ value);
    void remove (_dispWindowEvents_WindowCreatedEventHandler^ value);
}
abstract WindowCreated : IEvent<_dispWindowEvents_WindowCreatedEventHandler,
    EventArgs>
override WindowCreated : IEvent<_dispWindowEvents_WindowCreatedEventHandler,
    EventArgs>
JScript 不支持事件。

实现

_dispWindowEvents_Event.WindowCreated

示例

Public Sub WindowEvents_WindowCreated(ByVal Window As EnvDTE.Window) Handles WindowEvents.WindowCreated
   MsgBox("test")
End Sub

.NET Framework 安全性

请参阅

参考

WindowEventsClass 类

EnvDTE 命名空间