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

IMapDocument.MapCount 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.MapCount Property
ArcGIS Developer Help

IMapDocument.MapCount Property

The number of Map objects contained within the map document.

[Visual Basic .NET]
Public ReadOnly Property MapCount As Integer
public int MapCount {get;}
HRESULT get_MapCount(
  System.Int32* MapCount
MapCount [out, retval]

MapCount is a parameter of type long*

Product Availability

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


Returns the number of map's within the PageLayout.

See Also

IMapDocument Interface