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


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

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