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

IMxDocument.FocusMap Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > ArcMapUI > ESRI.ArcGIS.ArcMapUI > Interfaces > IM > IMxDocument Interface > IMxDocument.FocusMap Property
ArcGIS Developer Help

IMxDocument.FocusMap Property

The current focus map.

[Visual Basic .NET]
Public ReadOnly Property FocusMap As IMap
public IMap FocusMap {get;}

Product Availability

Available with ArcGIS Desktop.


This property is a short-cut to IActiveView::FocusMap and is read-only.  To programmatically change the FocusMap use IActiveView::FocusMap.

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.

See Also

IMxDocument Interface | IActiveView.FocusMap Property

.NET Samples

Generate a report Brushing to create a selection Make a custom time slider Implementing a schematic digitizing tool Create a custom selection extension by extending ArcObjects Create a custom selection extension by extending ArcObjects StreetMap routing