Assembly: ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.1500 (2.0.0.1500)
Syntax
C# |
---|
public sealed class LayerOrderCollection : IEnumerable<Layer>, IEnumerable |
Visual Basic (Declaration) |
---|
Public NotInheritable Class LayerOrderCollection _ Implements IEnumerable(Of Layer), IEnumerable |
Remarks
The LayerOrderCollection class is a read-only collection of Layers that are currently contained by the Map. You cannot add and remove from the collection directly; in order to add and remove items from the map use the appropriate methods on the Map.ChildItems collection.
This class exposes several methods to change the drawing order of layers in the map: you can move a specified layer up or down by a single position in the order, move the layer to the top of the order (drawing above all other layers in the map) or move the layer to the bottom of the order (drawing underneath all other layers in the map). It is also possible to move a layer to a specific draw index or obtain the draw index for a specified layer.
When a Layer object is added to the ChildItems collection, the object will be drawn on top of other layers in the map, at a draw index of 0.
A LayerOrderCollection cannot be explicitly instantiated; it is always obtained using the Map.LayerDrawingOrder property. You cannot change the contents of the collection directly; in order to add and remove items from the map use the appropriate methods on the Map.ChildItems MapItemCollection.