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


IScene.Layers Property (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (3DAnalyst)  

IScene.Layers Property

The layers in the scene of the type specified in the UID. If 'recursive' is true, includes layers in group layers.

[Visual Basic .NET]
Public Function get_Layers ( _
    [ByVal uid As UID], _
    [ByVal recursive As Boolean] _
) As IEnumLayer
[C#]
public IEnumLayer get_Layers (
    UID uid,
    bool recursive
);
[C#]

Optional Values

uid   Optional, default value of .
recursive   Supply false as a default value.
[C++]
HRESULT get_Layers(
  IUID* uid,
  VARIANT_BOOL recursive,
  IEnumLayer** Layers
);
[C++]

Parameters uid [optional]
uid is a parameter of type IUID recursive [in, optional, defaultvalue(VARIANT_FALSE)] recursive is a parameter of type VARIANT_BOOL Layers [out, retval]
Layers is a parameter of type IEnumLayer

Product Availability

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

See Also

IScene Interface

.NET Snippets

Zoom to Selected Globe Features | Create Group Layer Animation

.NET Samples

Create camera flyby from path (Code Files: frmCameraPath)

.NET Related Topics

How to zoom to selected features in globe