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


IScene.LayerCount Property (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (3DAnalyst)  

IScene.LayerCount Property

The number of layers in the scene.

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

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

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires 3D Analyst Extension.

See Also

IScene Interface

.NET Samples

Creating a toolbar of globe tools (Code Files: TableOfContents)