Gets the index value of the selected Layer.

Namespace:  ESRI.ArcGISExplorer.Mapping

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

Syntax

C#
public int GetDrawIndex(
	Layer layer
)
Visual Basic (Declaration)
Public Function GetDrawIndex ( _
	layer As Layer _
) As Integer

Parameters

layer
Type: ESRI.ArcGISExplorer.Mapping..::.Layer

The layer.

Return Value

An integer denoting the indexed position of the specified layer within the LayerOrderCollection.

Remarks

When a layer is added to the map, it is automatically added at a DrawIndex of zero, which means it draws on top of other layers in the map.

See Also