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

IActiveView.FocusMap 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.FocusMap Property
ArcGIS Developer Help

IActiveView.FocusMap Property

The map that tools and controls act on.

[Visual Basic .NET]
Public Property FocusMap As IMap
public IMap FocusMap {get; set;}
HRESULT get_FocusMap(
  IMap** activeMap
HRESULT putref_FocusMap(
  IMap* activeMap
activeMap [out, retval]

activeMap is a parameter of type IMap** activeMap [in]
activeMap is a parameter of type IMap*

Product Availability

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


A user's map may comprise one or more Map objects.  Each Map object typically holds layers of data as well as several MapSurround objects such as a Legend. This property returns an IMap reference to the Map object that currently has focus. In ArcMap, the focus map is the one visible in data view and the one selected in layout view.

Changing the focus map fires the IActiveViewEvents::FocusMapChanged event. In ArcMap, the focus map is automatically set to any new Map added.

IMxDocument::FocusMap is a read-only short cut to this property.

See Also

IActiveView Interface | IMxDocument.FocusMap Property

.NET Samples

Dynamic display animated zoom Dynamic display animated zoom