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)。 |
回頁首
備註
WindowEvents 物件由 DTE.Events 傳回。
範例
<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