com.esri.arcgis.arcmapui
Interface IMoveLayersOperation

All Superinterfaces:
Serializable
All Known Implementing Classes:
MoveLayersOperation

public interface IMoveLayersOperation
extends Serializable

Provides access to members that control the Move layer operation.

Product Availability

Available with ArcGIS Desktop.


Method Summary
 void addLayerInfo(ILayer layer, IMap pSourceMap, IGroupLayer pSourceGroup)
          Information of the layer to be moved.
 void setDestinationInfo(int toIndex, IMap pDestinationMap, IGroupLayer pDestinationGroup)
          Information regarding where the the layer needs to be moved.
 

Method Detail

addLayerInfo

void addLayerInfo(ILayer layer,
                  IMap pSourceMap,
                  IGroupLayer pSourceGroup)
                  throws IOException,
                         AutomationException
Information of the layer to be moved. Source group is NULL if the layer belongs to a map. This method can be called repeatedly until all the layers are added.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Parameters:
layer - A reference to a com.esri.arcgis.carto.ILayer (in)
pSourceMap - A reference to a com.esri.arcgis.carto.IMap (in)
pSourceGroup - A reference to a com.esri.arcgis.carto.IGroupLayer (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setDestinationInfo

void setDestinationInfo(int toIndex,
                        IMap pDestinationMap,
                        IGroupLayer pDestinationGroup)
                        throws IOException,
                               AutomationException
Information regarding where the the layer needs to be moved. Destination group is NULL if the layer is bing moved to into a map.

Product Availability

Available with ArcGIS Desktop.

Supported Platforms

Windows

Parameters:
toIndex - The toIndex (in)
pDestinationMap - A reference to a com.esri.arcgis.carto.IMap (in)
pDestinationGroup - A reference to a com.esri.arcgis.carto.IGroupLayer (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.