This document is archived and information here might be outdated.  Recommended version.


IMapLayers.MoveLayerEx Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Carto)  

IMapLayers.MoveLayerEx Method

Moves the layer with in the map.

[Visual Basic .NET]
Public Sub MoveLayerEx ( _
    ByVal pFromGroup As IGroupLayer, _
    ByVal pToGroup As IGroupLayer, _
    ByVal pLayer As ILayer, _
    ByVal newPosition As Integer _
)
[C#]
public void MoveLayerEx (
    IGroupLayer pFromGroup,
    IGroupLayer pToGroup,
    ILayer pLayer,
    int newPosition
);
[C++]
HRESULT MoveLayerEx(
  IGroupLayer* pFromGroup,
  IGroupLayer* pToGroup,
  ILayer* pLayer,
  long newPosition
);
[C++]

Parameters pFromGroup [in]
pFromGroup is a parameter of type IGroupLayer pToGroup [in]
pToGroup is a parameter of type IGroupLayer pLayer [in]
pLayer is a parameter of type ILayer newPosition [in] newPosition is a parameter of type long

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

See Also

IMapLayers Interface