ArcObjects Library Reference (Carto)  

IMaps Interface

Provides access to members that control the maps collection. Note: the IMaps interface has been superseded byIMaps2. Please consider using the more recent version.

Product Availability

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

Members

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 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 IMaps

CoClasses and Classes Description
Maps (esriArcMapUI) Helper for working with the IMaps interface.
TxMaps (esriTrackingAnalyst) TxMaps is a container class that holds a list or array of objects implementing IMap.

Remarks

Use IMaps interface to get access to a collection of Maps object using IMxDocument.Maps property.

Please ignore the above statement in the Product Availability section. IMaps interface is NOT available with ArcGIS Server and ArcGIS Engine since this interface is used to get access to a Maps object, which is a non-creatable object. References to non-creatable objects must be obtained through other objects. IMaps interface is available only with ArcGIS Desktop.  

.NET Samples

Implementing an XML builder external component (Code Files: XMLDocImpl) | Layer filtering TOC view (Code Files: TOCLayerFilter) | Schematic diagram auto refresh (Code Files: FormAutorefresh) | Synchronized MapControl and PageLayoutControl application (Code Files: ControlsSynchronizer) |

.NET Related Topics

How to access maps and layers via the MxDocument |