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

IScene.LayerCount Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > 3DAnalyst > ESRI.ArcGIS.Analyst3D > Interfaces > IS > IScene Interface > IScene.LayerCount Property
ArcGIS Developer Help

IScene.LayerCount Property

The number of layers in the scene.

[Visual Basic .NET]
Public ReadOnly Property LayerCount As Integer
public int LayerCount {get;}
HRESULT get_LayerCount(
  System.Int32* pcLayers
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