Gets the map that contains the MapItem.

Namespace:  ESRI.ArcGISExplorer.Mapping

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

Syntax

C#
public Map RootMap { get; }
Visual Basic (Declaration)
Public ReadOnly Property RootMap As Map

Field Value

A map that contains the MapItem; may be nullNothingnullptra null reference (Nothing in Visual Basic) if the MapItem is not contained by a map.

Remarks

This property allows you to retrieve an instance of the map that ultimately contains the MapItem. In some cases the parent of the MapItem may not be the map itself, for example the MapItem could be contained by a Folder. In this scenario it is useful to be able to retrieve the map that is the root container i.e. at the top of the containment hierarchy.

See Also