This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IM > IMapControlDefault Interface > IMapControlDefault.LayerCount Property (ArcObjects .NET 10.4 SDK) |
Number of layers in the Map.
[Visual Basic .NET] Public ReadOnly Property LayerCount As Integer
[C#] public int LayerCount {get;}
[C++]
HRESULT get_LayerCount(
long* numLayers
);
[C++]
Parameters numLayers [out, retval] numLayers is a parameter of type long
Returns the number of layers in the Map that implement IDataLayer. This does not include ICompositeLayer objects.
IMapControlDefault Interface | IMapControl4.ClearLayers Method | IMapControlDefault.ClearLayers Method | IMapControl3.ClearLayers Method | IMapControl4.DeleteLayer Method | IMapControlDefault.DeleteLayer Method | IMapControl3.DeleteLayer Method | IMapControl4.Layer Property | IMapControl3.Layer Property | IMapControlDefault.Layer Property | IMapControlDefault.MoveLayerTo Method | IMapControl4.MoveLayerTo Method | IMapControl3.MoveLayerTo Method