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


IMapLayers.LayerCount Property (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Carto)  

IMapLayers.LayerCount Property

Number of layers in the map.

[Visual Basic .NET]
Public ReadOnly Property LayerCount As Integer
[C#]
public int LayerCount {get;}
[C++]
HRESULT get_LayerCount(
  System.Int32* Count
);
[C++]

Parameters Count [out, retval]
Count is a parameter of type long*

Product Availability

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

See Also

IMapLayers Interface