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

.NET Snippets

TimeControl Playback | Set Data Source

.NET Samples

Make a custom time slider (Code Files: CustomTimeSliderButton) | Implementing a schematic digitizing tool (Code Files: DigitTool) | Generate a report (Code Files: ExportReport) | Brushing to create a selection (Code Files: BrushingVB) | StreetMap routing (Code Files: RoutingForm) | Create a custom selection extension by extending ArcObjects (Code Files: SelectionExtension ZoomToLayerMultiItem)

.NET Related Topics

Adjusting feature locations with spatial adjustment | ArcMapUI