In this topic
Application object
The Application object represents the ArcGIS Explorer application. Use the Application object to access the methods, properties, and events that correspond to the ArcGIS Explorer application, such as the active map view, caption, current document (nmf), and selected items on the map. See the following code example:
[C#]
ESRI.ArcGISExplorer.Application.Application.Caption = "My Custom ArcGIS Explorer";
[VB.NET]
Application.Caption = "My Custom ArcGIS Explorer"
Code snippets are available to access the Presentation, SelectedItems, and ActiveMapDisplay properties of the Application object. See the Code snippets topic for more information on using code snippets.
MapDisplay object
The following code example shows how to obtain references to the MapDisplay object:
[C#]
MapDisplay _md = ESRI.ArcGISExplorer.Application.Application.ActiveMapDisplay;
[VB.NET]
Dim _md As MapDisplay = ESRI.ArcGISExplorer.Application.Application.ActiveMapDisplay
The 'Get ActiveMapDisplay from Application' code snippet can be used to obtain a reference to the current MapDisplay object. See the Code snippets topic for more information on using code snippets.
Map object
The following code example shows how to obtain references to the Map object:
[C#]
MapDisplay mapDisplay = ESRI.ArcGISExplorer.Application.Application.ActiveMapDisplay;
Map myMap = mapDisplay.Map;
[VB.NET]
Dim mapDisplay As MapDisplay = ESRI.ArcGISExplorer.Application.Application.ActiveMapDisplay
Dim myMap As Map = mapDisplay.Map