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


IMaps Interface (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMaps Interface
ArcGIS Developer Help

IMaps Interface

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

Product Availability

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

Members

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 Remove Removes a map from the collection.
Method RemoveAt Removes a map at the specified index.
Method Reset Removes all maps from the collection.

Classes that implement IMaps

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 for 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 for Desktop.  

.NET Samples

Synchronized MapControl and PageLayoutControl application Schematic diagram auto refresh Implementing an XML builder external component Layer filtering TOC view