![]() |
This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > ArcMapUI > ESRI.ArcGIS.ArcMapUI > Interfaces > ID > IDocumentEventsDisp Interface > IDocumentEventsDisp.ActiveViewChanged Event (ArcObjects .NET 10.4 SDK) |
Fired when the active view has changed.
[Visual Basic .NET] Public Event ActiveViewChanged As ActiveViewChangedEventHandler
[C#] public event ActiveViewChangedEventHandler ActiveViewChanged
There are two different view types in ArcMap--data view and page layout view. Only one type of view can be active in the application at a time; the one with the focus is the active view. The ActiveViewChanged event occurs when the active view is changed. For example, this event is fired when ArcMap is switched from data view to page layout view or vice versa.