Gets the number of ImageOverlay objects in the map.

Namespace:  ESRI.ArcGISExplorer.Mapping

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

Syntax

C#
public int Count { get; }
Visual Basic (Declaration)
Public ReadOnly Property Count As Integer

Field Value

An integer indicating the number of image overlays in the collection

Remarks

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())

See Also