AnsweredAssumed Answered

MoveLayer not working as documented

Question asked by kirkktx on Feb 23, 2017
Latest reply on Feb 24, 2017 by UHarano-esristaff

The documentation for ILayerContainerEdit.MoveLayer says:

The position specified by the 0-based index. If the index is invalid, the layer is moved to the bottom.

However this code doesn't move the layer to the bottom:

 Dim srcLayer = MapView.Active.GetSelectedLayers()(0)
MapView.Active.Map.MoveLayer(srcLayer, 999)

Only 3 layers are in the map.