The layer at the given index.
[Visual Basic 6.0] Property Layer(
ByVal Index As Long _
) As ILayer
[Visual Basic .NET] Public Function get_Layer ( _ ByVal Index As Integer _ ) As ILayer
[C#] public ILayer get_Layer ( int Index );
[Java] public getLayer ( Long Index, ILayer Layer )
[C++] HRESULT get_Layer( long Index, ILayer** Layer );
Parameters
Index [in]
Index is a parameter of type long
Layer [out, retval]
Layer is a parameter of type ILayer
Maps are typically composed of numerous layers from various data sources. Use the Layer property to access a particular layer in a map. The collection of layers is 0-based. Use the Layer property in conjunction with the LayerCount property to loop through all the layers in the map.
The Layer property returns an ILayer reference; attempt a Query Interface to determine the type of layer object. For example, do not assume that all layers in a map are FeatureLayers. Valid layers are those that implement ILayer and IDataLayer.
Each Map also has a basic graphics layer (CompositeGraphicLayer) that is not comprised in the collection of layers returned by this property; a reference to this layer is obtainable through the BasicGraphicsLayer property.
IMap Interface | IMap.LayerCount Property