Partilhar via


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
public interface class DocumentEvents : EnvDTE::_dispDocumentEvents_Event
public interface class DocumentEvents : EnvDTE::_dispDocumentEvents_Event, EnvDTE::_DocumentEvents
__interface 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
[System.Runtime.InteropServices.CoClass(typeof(EnvDTE.DocumentEventsClass))]
[System.Runtime.InteropServices.Guid("DC5437F5-F114-11D2-AACF-00C04F688DDE")]
[System.Runtime.InteropServices.ComVisible(false)]
public interface DocumentEvents : EnvDTE._dispDocumentEvents_Event
[<System.Runtime.InteropServices.CoClass(typeof(EnvDTE.DocumentEventsClass))>]
[<System.Runtime.InteropServices.Guid("DC5437F5-F114-11D2-AACF-00C04F688DDE")>]
type DocumentEvents = interface
    interface _DocumentEvents
    interface _dispDocumentEvents_Event
[<System.Runtime.InteropServices.CoClass(typeof(EnvDTE.DocumentEventsClass))>]
[<System.Runtime.InteropServices.Guid("DC5437F5-F114-11D2-AACF-00C04F688DDE")>]
[<System.Runtime.InteropServices.ComVisible(false)>]
type DocumentEvents = interface
    interface _dispDocumentEvents_Event
Public Interface DocumentEvents
Implements _dispDocumentEvents_Event, _DocumentEvents
Public Interface DocumentEvents
Implements _dispDocumentEvents_Event
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.

Methods

add_DocumentClosing(_dispDocumentEvents_DocumentClosingEventHandler) (Inherited from _dispDocumentEvents_Event)
add_DocumentOpened(_dispDocumentEvents_DocumentOpenedEventHandler) (Inherited from _dispDocumentEvents_Event)
add_DocumentOpening(_dispDocumentEvents_DocumentOpeningEventHandler) (Inherited from _dispDocumentEvents_Event)
add_DocumentSaved(_dispDocumentEvents_DocumentSavedEventHandler) (Inherited from _dispDocumentEvents_Event)
remove_DocumentClosing(_dispDocumentEvents_DocumentClosingEventHandler) (Inherited from _dispDocumentEvents_Event)
remove_DocumentOpened(_dispDocumentEvents_DocumentOpenedEventHandler) (Inherited from _dispDocumentEvents_Event)
remove_DocumentOpening(_dispDocumentEvents_DocumentOpeningEventHandler) (Inherited from _dispDocumentEvents_Event)
remove_DocumentSaved(_dispDocumentEvents_DocumentSavedEventHandler) (Inherited from _dispDocumentEvents_Event)

Events

DocumentClosing

This API supports the product infrastructure and is not intended to be used directly from your code.

Microsoft Internal Use Only.

(Inherited from _dispDocumentEvents_Event)
DocumentOpened

This API supports the product infrastructure and is not intended to be used directly from your code.

Microsoft Internal Use Only.

(Inherited from _dispDocumentEvents_Event)
DocumentOpening

This API supports the product infrastructure and is not intended to be used directly from your code.

Microsoft Internal Use Only.

(Inherited from _dispDocumentEvents_Event)
DocumentSaved

This API supports the product infrastructure and is not intended to be used directly from your code.

Microsoft Internal Use Only.

(Inherited from _dispDocumentEvents_Event)

Applies to