IGxDocumentEventsDisp Interface (ArcObjects .NET 10.6 SDK)
ArcObjects Help for .NET developers > ArcObjects namespaces > ArcCatalog > ESRI.ArcGIS.ArcCatalog > Interfaces > IG > IGxDocumentEventsDisp Interface (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (ArcCatalog)  

IGxDocumentEventsDisp Interface

Provides access to events fired by ArcCatalog.

Product Availability

Available with ArcGIS Desktop.

Members

Name Description
Method ActiveViewChanged Fired when the active view changes.
Method CloseDocument Fired when a document is closed.
Method NewDocument Fired when a new document is created.
Method OnContextMenu Fired when a context menu should be displayed at the given xy location. Return true if handled.
Method OpenDocument Fired when a document is opened.
Method VBAReset Fired when VBA is reset.

CoClasses that implement IGxDocumentEventsDisp

CoClasses and Classes Description
GxDocument Esri ArcCatalog Application Document.

Remarks

When you are working in VBA, the IGxDocumentEventsDisp interface is automatically exposed for you. There is a GxDocument object defined in the ThisDocument class module. Select that object in the Object Box on the ThisDocument code window and then you can choose any of its events by clicking in the Procedure/Method Box on the ThisDocument code window. This stubs out the event procedures and you can write your code here.