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


IACMap.MoveLayer Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IA > IACMap Interface > IACMap.MoveLayer Method
ArcGIS Developer Help

IACMap.MoveLayer Method

Moves a layer to another position.

[Visual Basic .NET]
Public Sub MoveLayer ( _
    ByVal Layer As IACLayer, _
    ByVal toIndex As Integer _
)
[C#]
public void MoveLayer (
    IACLayer Layer,
    int toIndex
);
[C++]
HRESULT MoveLayer(
  IACLayer* Layer,
  long toIndex
);
[C++]
Parameters
Layer [in]

Layer is a parameter of type IACLayer* toIndex [in]
toIndex is a parameter of type long

Product Availability

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

See Also

IACMap Interface