ESRI.ArcGIS.ADF.IMS
GetAllNestedNonGroupLayers Method
See Also 
ESRI.ArcGIS.ADF.IMS.Carto.Layer Namespace > LayerCollection Class : GetAllNestedNonGroupLayers Method




Gets a collection of all layers where any groups have been ungrouped.

Syntax

Visual Basic (Declaration) 
Public Function GetAllNestedNonGroupLayers() As LayerCollection
Visual Basic (Usage)Copy Code
Dim instance As LayerCollection
Dim value As LayerCollection
 
value = instance.GetAllNestedNonGroupLayers()
C# 
public LayerCollection GetAllNestedNonGroupLayers()

Return Value

Collection of all layers in the map.

Remarks

Layers can be grouped within the layer collection of a MapView. To retrieve each layer when groups are used, it would be necessary to drill down within each group. The GetAllNestedNonGroupLayers method creates a new LayerCollection where the members of layer groups are ungrouped. This LayerCollection makes no changes to the Layers of the MapView. However, the individual layers are references to the actual layers within the MapView.

See Also

© 2010 All Rights Reserved.