ArcGIS API for WPF - Library Reference
MoveLayer Method
See Also  Send comments on this topic
ESRI.ArcGIS.Client Namespace > Map Class : MoveLayer Method

oldIndex
The zero-based index specifying the location of the layer to be moved.
newIndex
The zero-based index specifying the new location of the layer.
Reorders a layer in the Layers collection.

Syntax

Visual Basic (Declaration) 
Public Sub MoveLayer( _
   ByVal oldIndex As Integer, _
   ByVal newIndex As Integer _
) 
C# 
public void MoveLayer( 
   int oldIndex,
   int newIndex
)

Parameters

oldIndex
The zero-based index specifying the location of the layer to be moved.
newIndex
The zero-based index specifying the new location of the layer.

Requirements

Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© ESRI, Inc. All Rights Reserved.