Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

DocumentEvents Interface

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

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)

[GuidAttribute("DC5437F5-F114-11D2-AACF-00C04F688DDE")]
public interface DocumentEvents : _DocumentEvents, 
	_dispDocumentEvents_Event

The DocumentEvents type exposes the following members.

  NameDescription
Public methodadd_DocumentClosingInfrastructure. Microsoft Internal Use Only. (Inherited from _dispDocumentEvents_Event.)
Public methodadd_DocumentOpenedInfrastructure. Microsoft Internal Use Only. (Inherited from _dispDocumentEvents_Event.)
Public methodadd_DocumentOpeningInfrastructure. Microsoft Internal Use Only. (Inherited from _dispDocumentEvents_Event.)
Public methodadd_DocumentSavedInfrastructure. Microsoft Internal Use Only. (Inherited from _dispDocumentEvents_Event.)
Public methodremove_DocumentClosingInfrastructure. Microsoft Internal Use Only. (Inherited from _dispDocumentEvents_Event.)
Public methodremove_DocumentOpenedInfrastructure. Microsoft Internal Use Only. (Inherited from _dispDocumentEvents_Event.)
Public methodremove_DocumentOpeningInfrastructure. Microsoft Internal Use Only. (Inherited from _dispDocumentEvents_Event.)
Public methodremove_DocumentSavedInfrastructure. Microsoft Internal Use Only. (Inherited from _dispDocumentEvents_Event.)
Top

  NameDescription
Public eventDocumentClosingInfrastructure. Microsoft Internal Use Only. (Inherited from _dispDocumentEvents_Event.)
Public eventDocumentOpenedInfrastructure. Microsoft Internal Use Only. (Inherited from _dispDocumentEvents_Event.)
Public eventDocumentOpeningInfrastructure. Microsoft Internal Use Only. (Inherited from _dispDocumentEvents_Event.)
Public eventDocumentSavedInfrastructure. Microsoft Internal Use Only. (Inherited from _dispDocumentEvents_Event.)
Top

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

<System.ContextStaticAttribute()> Public WithEvents DocumentEvents As EnvDTE.DocumentEvents

Public Sub DocumentEvents_DocumentClosing(ByVal Document As EnvDTE.Document) Handles DocumentEvents.DocumentClosing
   MsgBox("test")
End Sub
Show:
© 2015 Microsoft