This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > ArcMapUI > ESRI.ArcGIS.ArcMapUI > Interfaces > IM > IMxDocument Interface > IMxDocument.ActivatedView Property (ArcObjects .NET 10.5 SDK) |
The activated view. This is the same as the active view unless a data frame is activated within a layout.
[Visual Basic .NET] Public ReadOnly Property ActivatedView As IActiveView
[C#] public IActiveView ActivatedView {get;}
This property is primarily used when adding graphics as it conveniently gives a reference to the object set as the target graphics container.
In ArcMap's layout view, graphics can either be added to the PageLayout's graphics container or the focus Map's graphics container if the Map has been activated by double-clicking on it. In this case, IMxDocument::ActiveView differs from IMxDocument::ActivatedView in that the ActiveView property may pass a reference to the PageLayout object while the ActivatedView property may pass a reference to the focus Map object if that Map has been activated. In data view, both ActiveView and ActivatedView return a reference to the focus Map.
IMxDocument Interface | IActiveView.IsMapActivated Property