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 형식에서는 다음과 같은 멤버를 노출합니다.

메서드

  이름 설명
Public 메서드 add_WindowActivated 인프라입니다. Microsoft 내부용입니다. (_dispWindowEvents_Event에서 상속됨)
Public 메서드 add_WindowClosing 인프라입니다. Microsoft 내부용입니다. (_dispWindowEvents_Event에서 상속됨)
Public 메서드 add_WindowCreated 인프라입니다. Microsoft 내부용입니다. (_dispWindowEvents_Event에서 상속됨)
Public 메서드 add_WindowMoved 인프라입니다. Microsoft 내부용입니다. (_dispWindowEvents_Event에서 상속됨)
Public 메서드 remove_WindowActivated 인프라입니다. Microsoft 내부용입니다. (_dispWindowEvents_Event에서 상속됨)
Public 메서드 remove_WindowClosing 인프라입니다. Microsoft 내부용입니다. (_dispWindowEvents_Event에서 상속됨)
Public 메서드 remove_WindowCreated 인프라입니다. Microsoft 내부용입니다. (_dispWindowEvents_Event에서 상속됨)
Public 메서드 remove_WindowMoved 인프라입니다. Microsoft 내부용입니다. (_dispWindowEvents_Event에서 상속됨)

위쪽

이벤트

  이름 설명
Public 이벤트 WindowActivated 인프라입니다. Microsoft 내부용입니다. (_dispWindowEvents_Event에서 상속됨)
Public 이벤트 WindowClosing 인프라입니다. Microsoft 내부용입니다. (_dispWindowEvents_Event에서 상속됨)
Public 이벤트 WindowCreated 인프라입니다. Microsoft 내부용입니다. (_dispWindowEvents_Event에서 상속됨)
Public 이벤트 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

참고 항목

참조

EnvDTE 네임스페이스