Gets a collection of Layer objects currently contained by the Map;the order of the collection controls the order in which the layers are drawn by the ArcGIS Explorer application.

Namespace:  ESRI.ArcGISExplorer.Mapping

Assembly:  ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.1500 (2.0.0.1500)

Syntax

C#
public LayerOrderCollection LayerDrawingOrder { get; }
Visual Basic (Declaration)
Public ReadOnly Property LayerDrawingOrder As LayerOrderCollection

Field Value

A LayerOrderCollection populated with Layer objects currently contained by the Map. Returns an empty collection if no Layers are contained by the Map.

Remarks

Use this property to change the drawing order of Layer objects in the Map. 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 ChildItems collection.

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.

The collection 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).

See Also