ArcObjects Library Reference (ArcMapUI)  

IMxDocument.FocusMap Property

The current focus map.

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

Product Availability

Available with ArcGIS Desktop.

Remarks

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