DocumentEventsClass.DocumentOpened Event

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

Occurs after a document is opened.

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

Syntax

'Declaration
Public Overridable Event DocumentOpened As _dispDocumentEvents_DocumentOpenedEventHandler
public virtual event _dispDocumentEvents_DocumentOpenedEventHandler DocumentOpened
public:
virtual   event _dispDocumentEvents_DocumentOpenedEventHandler^ DocumentOpened {
    void add (_dispDocumentEvents_DocumentOpenedEventHandler^ value);
    void remove (_dispDocumentEvents_DocumentOpenedEventHandler^ value);
}
abstract DocumentOpened : IEvent<_dispDocumentEvents_DocumentOpenedEventHandler,
    EventArgs>
override DocumentOpened : IEvent<_dispDocumentEvents_DocumentOpenedEventHandler,
    EventArgs>
JScript does not support events.

Implements

_dispDocumentEvents_Event.DocumentOpened

Examples

Public Sub DocumentEvents_DocumentOpened(ByVal Document As _
    EnvDTE.Document) Handles DocumentEvents.DocumentOpened
        MsgBox("test")
End Sub

.NET Framework Security

See Also

Reference

DocumentEventsClass Class

EnvDTE Namespace