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


IMapLayers.MoveLayerEx Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMapLayers Interface > IMapLayers.MoveLayerEx Method
ArcGIS Developer Help

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