This document is archived and information here might be outdated.  Recommended version.


IMxDocument.ActivatedView Property (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (ArcMapUI)  

IMxDocument.ActivatedView Property

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;}

Product Availability

Available with ArcGIS Desktop.

Remarks

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.

 

 

 

See Also

IMxDocument Interface | IActiveView.IsMapActivated Property

.NET Samples

Brushing to create a selection (Code Files: BrushingVB)