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


IActiveView.IsMapActivated Property (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Carto)  

IActiveView.IsMapActivated Property

Indicates if the focus map is activated.

[Visual Basic .NET]
Public Property IsMapActivated As Boolean
[C#]
public bool IsMapActivated {get; set;}
[C++]
HRESULT get_IsMapActivated(
  VARIANT_BOOL* IsMapActivated
);
[C++]
HRESULT put_IsMapActivated(
  VARIANT_BOOL IsMapActivated
);
[C++]

Parameters IsMapActivated [out, retval] IsMapActivated is a parameter of type VARIANT_BOOL IsMapActivated [in] IsMapActivated is a parameter of type VARIANT_BOOL

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

In ArcMap's layout view, when the focus map is activated by double-clicking on it, new graphic elements are added to the Map's active graphics layer.  When the focus map is not activated, the default, graphic elements are added to the PageLayout object.  Both the Map and PageLayout objects are graphics containers, setting this property to TRUE diverts graphics from the PageLayout to the focus Map.

A Map can be activated in both layout and data views.

When this property is set to TRUE, IActiveView::PartialRefresh is called for the esriViewGraphicSelection draw phase.

See Also

IActiveView Interface | IMxDocument.ActivatedView Property