Partager via


WindowEvents, interface

Fournit des événements pour les modifications apportées à Windows dans l'environnement. Utilisez cet objet pour la fonctionnalité et reportez-vous à WindowEventsClass pour avoir de la documentation sur cet objet.

Espace de noms :  EnvDTE
Assembly :  EnvDTE (dans EnvDTE.dll)

Syntaxe

'Déclaration
<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

Le type WindowEvents expose les membres suivants.

Méthodes

  Nom Description
Méthode publique add_WindowActivated Infrastructure. Réservé à un usage interne Microsoft. (Hérité de _dispWindowEvents_Event.)
Méthode publique add_WindowClosing Infrastructure. Réservé à un usage interne Microsoft. (Hérité de _dispWindowEvents_Event.)
Méthode publique add_WindowCreated Infrastructure. Réservé à un usage interne Microsoft. (Hérité de _dispWindowEvents_Event.)
Méthode publique add_WindowMoved Infrastructure. Réservé à un usage interne Microsoft. (Hérité de _dispWindowEvents_Event.)
Méthode publique remove_WindowActivated Infrastructure. Réservé à un usage interne Microsoft. (Hérité de _dispWindowEvents_Event.)
Méthode publique remove_WindowClosing Infrastructure. Réservé à un usage interne Microsoft. (Hérité de _dispWindowEvents_Event.)
Méthode publique remove_WindowCreated Infrastructure. Réservé à un usage interne Microsoft. (Hérité de _dispWindowEvents_Event.)
Méthode publique remove_WindowMoved Infrastructure. Réservé à un usage interne Microsoft. (Hérité de _dispWindowEvents_Event.)

Début

Événements

  Nom Description
Événement public WindowActivated Infrastructure. Réservé à un usage interne Microsoft. (Hérité de _dispWindowEvents_Event.)
Événement public WindowClosing Infrastructure. Réservé à un usage interne Microsoft. (Hérité de _dispWindowEvents_Event.)
Événement public WindowCreated Infrastructure. Réservé à un usage interne Microsoft. (Hérité de _dispWindowEvents_Event.)
Événement public WindowMoved Infrastructure. Réservé à un usage interne Microsoft. (Hérité de _dispWindowEvents_Event.)

Début

Notes

L'objet WindowEvents est retourné par DTE.Events.

Exemples

<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

Voir aussi

Référence

EnvDTE, espace de noms