IMaps2 Interface (ArcObjects .NET 10.6 SDK)
ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMaps2 Interface (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Carto)  

IMaps2 Interface

Provides access to members of map collection.

Product Availability

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


Name Description
Method Add Adds a map to the collection.
Read-only property Count Number of maps.
Method Create Creates a new map.
Read-only property Item The map at the given index.
Method MoveItem Moves the map to the given index.
Method Remove Removes a map from the collection.
Method RemoveAt Removes a map at the specified index.
Method Reset Removes all maps from the collection.

CoClasses that implement IMaps2

CoClasses and Classes Description


Every map document contains at least one Map object but a map document can contain any number of Map objects. The Maps object contains a collection of all the maps of the document. IMxDocument::Maps returns a reference to this collection.

The IMaps2 interface is a collection of map objects and contains method and properties to manage the maps contained by the document.

Only one Map can have focus at a time, and this Map is called the focus map. IMxDocument::FocusMap returns a reference to the Map currently with focus.