ArcObjects Library Reference (Carto)  

IMapDocument.Map Property

The Map object at the specified index.

[Visual Basic .NET]
Public Function get_Map ( _
    ByVal mapIndex As Integer _
) As IMap
[C#]
public IMap get_Map (
    int mapIndex
);
[C++]
HRESULT get_Map(
  long mapIndex,
  IMap** ppMap
);
[C++]

Parameters

mapIndex [in]   mapIndex is a parameter of type long ppMap [out, retval]

  ppMap is a parameter of type IMap

Product Availability

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

Description

Returns the Map at the specified index in the PageLayout map collection. Use a zero-based index to access a Map. For example, to get the first Map in the map collection, pass an index of 0, and to get the last Map in the map collection, pass an index of (MapCount - 1).

See Also

IMapDocument Interface