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


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

IScene.Layer Property

The layer corresponding to a given index.

[Visual Basic .NET]
Public Function get_Layer ( _
    ByVal index As Integer _
) As ILayer
[C#]
public ILayer get_Layer (
    int index
);
[C++]
HRESULT get_Layer(
  long index,
  ILayer** ppLayer
);
[C++]

Parameters index [in] index is a parameter of type long ppLayer [out, retval]
ppLayer is a parameter of type ILayer

Product Availability

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

See Also

IScene Interface

.NET Snippets

Zoom to Globe Layer

.NET Samples

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

.NET Related Topics

3DAnalyst | How to zoom to a layer in globe