WindowEventsClass.WindowMoved 事件

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

当移动窗口或调整窗口大小后发生。

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

语法

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

实现

_dispWindowEvents_Event.WindowMoved

示例

Public Sub WindowEvents_WindowMoved(ByVal Window As EnvDTE.Window, ByVal Top As Integer, ByVal Left As Integer, ByVal [Width] As Integer, ByVal Height As Integer) Handles WindowEvents.WindowMoved
   MsgBox("test")
End Sub

.NET Framework 安全性

请参见

参考

WindowEventsClass 类

EnvDTE 命名空间