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

IActiveView.IsMapActivated Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IA > IActiveView Interface > IActiveView.IsMapActivated Property
ArcGIS Developer Help

IActiveView.IsMapActivated Property

Indicates if the focus map is activated.

[Visual Basic .NET]
Public Property IsMapActivated As Boolean
public bool IsMapActivated {get; set;}
HRESULT get_IsMapActivated(
  Boolean* IsMapActivated
HRESULT put_IsMapActivated(
  VARIANT_BOOL IsMapActivated
IsMapActivated [out, retval]

IsMapActivated is a parameter of type bool* IsMapActivated [in]
IsMapActivated is a parameter of type bool

Product Availability

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


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