DocumentEvents DocumentEvents DocumentEvents DocumentEvents Interface

Definition

Provides document events. Use this object for functionality and refer to DocumentEventsClass for this object's documentation.

public interface class DocumentEvents : EnvDTE::_dispDocumentEvents_Event, EnvDTE::_DocumentEvents
[System.Runtime.InteropServices.CoClass(typeof(EnvDTE.DocumentEventsClass))]
[System.Runtime.InteropServices.Guid("DC5437F5-F114-11D2-AACF-00C04F688DDE")]
public interface DocumentEvents : EnvDTE._dispDocumentEvents_Event, EnvDTE._DocumentEvents
type DocumentEvents = interface
    interface _DocumentEvents
    interface _dispDocumentEvents_Event
Public Interface DocumentEvents
Implements _dispDocumentEvents_Event, _DocumentEvents
Derived
Attributes
Implements

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  

Remarks

The DocumentEvents object is returned by DTE.Events.DocumentEvents.

Applies to