Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Provides document events. Use this object for functionality and refer to DocumentEventsClass for this object's documentation.
Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)
Syntax
'Declaration
<GuidAttribute("DC5437F5-F114-11D2-AACF-00C04F688DDE")> _
Public Interface DocumentEvents _
    Inherits _DocumentEvents, _dispDocumentEvents_Event
[GuidAttribute("DC5437F5-F114-11D2-AACF-00C04F688DDE")]
public interface DocumentEvents : _DocumentEvents, 
    _dispDocumentEvents_Event
[GuidAttribute(L"DC5437F5-F114-11D2-AACF-00C04F688DDE")]
public interface class DocumentEvents : _DocumentEvents, 
    _dispDocumentEvents_Event
[<GuidAttribute("DC5437F5-F114-11D2-AACF-00C04F688DDE")>]
type DocumentEvents =  
    interface 
        interface _DocumentEvents 
        interface _dispDocumentEvents_Event 
    end
public interface DocumentEvents extends _DocumentEvents, _dispDocumentEvents_Event
The DocumentEvents type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
| .gif) | add_DocumentClosing | Infrastructure. Microsoft Internal Use Only. (Inherited from _dispDocumentEvents_Event.) | 
| .gif) | add_DocumentOpened | Infrastructure. Microsoft Internal Use Only. (Inherited from _dispDocumentEvents_Event.) | 
| .gif) | add_DocumentOpening | Infrastructure. Microsoft Internal Use Only. (Inherited from _dispDocumentEvents_Event.) | 
| .gif) | add_DocumentSaved | Infrastructure. Microsoft Internal Use Only. (Inherited from _dispDocumentEvents_Event.) | 
| .gif) | remove_DocumentClosing | Infrastructure. Microsoft Internal Use Only. (Inherited from _dispDocumentEvents_Event.) | 
| .gif) | remove_DocumentOpened | Infrastructure. Microsoft Internal Use Only. (Inherited from _dispDocumentEvents_Event.) | 
| .gif) | remove_DocumentOpening | Infrastructure. Microsoft Internal Use Only. (Inherited from _dispDocumentEvents_Event.) | 
| .gif) | remove_DocumentSaved | Infrastructure. Microsoft Internal Use Only. (Inherited from _dispDocumentEvents_Event.) | 
Top
Events
| Name | Description | |
|---|---|---|
| .gif) | DocumentClosing | Infrastructure. Microsoft Internal Use Only. (Inherited from _dispDocumentEvents_Event.) | 
| .gif) | DocumentOpened | Infrastructure. Microsoft Internal Use Only. (Inherited from _dispDocumentEvents_Event.) | 
| .gif) | DocumentOpening | Infrastructure. Microsoft Internal Use Only. (Inherited from _dispDocumentEvents_Event.) | 
| .gif) | DocumentSaved | Infrastructure. Microsoft Internal Use Only. (Inherited from _dispDocumentEvents_Event.) | 
Top
Remarks
The DocumentEvents object is returned by DTE.Events.DocumentEvents.
Examples
<System.ContextStaticAttribute()> Public WithEvents DocumentEvents As EnvDTE.DocumentEvents
Public Sub DocumentEvents_DocumentClosing(ByVal Document As EnvDTE.Document) Handles DocumentEvents.DocumentClosing
   MsgBox("test")
End Sub