Moves the MapItem to be a ChildItem of the specified IMapItemParent.

Namespace:  ESRI.ArcGISExplorer.Mapping

Assembly:  ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.1500 (2.0.0.1500)

Syntax

C#
public void MoveTo(
	IMapItemParent newParent
)
Visual Basic (Declaration)
Public Sub MoveTo ( _
	newParent As IMapItemParent _
)

Parameters

newParent
Type: ESRI.ArcGISExplorer.Mapping..::.IMapItemParent

The destination where the MapItem will be moved.

Remarks

The index of the MapItem in the parent ChildItems collection dictates the order in which items are presented in the ArcGIS Explorer contents window; the MapItem at index 0 will display at the top of the list. This method will move the MapItem to be a child of the specified IMapItemParent at index 0.

Alternatively, an overload is available, MapItem.MoveTo(IMapItemParent, int), which allows control over the index position of the child after the move.

Exceptions

ExceptionCondition
System..::.ArgumentExceptionThe MapItem cannot be moved to the specified parent. There are circumstances where the IMapItemParent.ChildItems property is read-only, or can only contain items of a specific type. For example KmlLayer.ChildItems cannot be added to, and will only every return a collection of constituent KmlNode objects for the KmlLayer in question. See the IMapItemParent.ChildItems property topic for a table listing containment constraints.

See Also