ArcGIS Explorer Component Help |
ImageOverlayOrderCollection..::.Count Property |
ImageOverlayOrderCollection Class Example See Also |
Gets the number of ImageOverlay objects in the map.
Namespace:
ESRI.ArcGISExplorer.MappingAssembly: ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.1500 (2.0.0.1500)
Syntax
Field Value
An integer indicating the number of image overlays in the collectionRemarks
You cannot add or remove image overlays directly from the ImageOverlayOrderCollection; the contents of the collection are driven by the image overlays currently contained in the map.
Examples
CopyC#
Map myMap = ESRI.ArcGISExplorer.Application.Application.ActiveMapDisplay.Map; // Get the collection of selected items from the application. ImageOverlayOrderCollection selItems = myMap.ImageOverlayDrawingOrder; //Enumerate using IEnumerable implementation. foreach (MapItem itm in selItems) { System.Diagnostics.Debug.WriteLine(itm.Name); } //Print number items in the ImageOverlayOrderCollection using the Count property. System.Diagnostics.Debug.Print(selItems.Count.ToString());
CopyVB.NET
Dim myMap As Map = ESRI.ArcGISExplorer.Application.Application.ActiveMapDisplay.Map 'Get the collection of selected items from the application. Dim selItems As ImageOverlayOrderCollection = myMap.ImageOverlayDrawingOrder 'Enumerate using IEnumerable implementation. For Each itm As MapItem In selItems System.Diagnostics.Debug.WriteLine(itm.Name) Next itm 'Print number items in the ImageOverlayOrderCollection using the Count property. System.Diagnostics.Debug.Print(selItems.Count.ToString())