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


IMapControlDefault.LayerCount Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IM > IMapControlDefault Interface > IMapControlDefault.LayerCount Property
ArcGIS Developer Help

IMapControlDefault.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(
void
);

Product Availability

Available with ArcGIS Engine.

Description

Returns the number of layers in the Map that implement IDataLayer. This does not include ICompositeLayer objects.

See Also

IMapControlDefault Interface