共用方式為


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 命名空間