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


IMapLayers2 Interface (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMapLayers2 Interface
ArcGIS Developer Help

IMapLayers2 Interface

Provides access to layers.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Members

Name Description
Method AddLayer Adds a layer to the map.
Method AddLayers Adds multiple layers to the map, arranging them nicely if specified.
Method ClearLayers Removes all layers from the map.
Method DeleteLayer Deletes a layer from the map.
Method InsertLayer Inserts a layer at the given position.
Method InsertLayerInGroup Inserts a layer at a given index of the map's group layer.
Method InsertLayers Inserts layers at the given position.
Method InsertLayersInGroup Inserts layers at a given index of the map's group layer.
Method IsLayerVisible Check if layer is visible.
Method IsLayerVisibleEx Check if layer is visible.
Read-only property Layer The layer at the given index.
Read-only property LayerCount Number of layers in the map.
Read-only property Layers The layers in the map of the type specified in the uid. If recursive is true it will return layers in group layers.
Method MoveLayer Moves a layer to another position.
Method MoveLayerEx Moves the layer with in the map.

Inherited Interfaces

Interfaces Description
IMapLayers Provides access to layers.

Classes that implement IMapLayers2

Classes Description
Map A container for the display and manipulation of map data.
Scene (esri3DAnalyst) A container for the display and manipulation of data.

.NET Samples

Add a traversal result to the map