Gets a collection of image overlays which are drawn on top of all other map content, including map items graphics and popups.

Namespace:  ESRI.ArcGISExplorer.Mapping

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

Syntax

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

Field Value

An ImageOverlayOrderCollection containing ImageOverlay objects, each of which represents an image which is drawn onto the map display.

Remarks

Use this property to add an images to the map that you dont want to appear as MapItems in the contents window and do not need to be saved with the map document.

Version Information: This class is supported from version 2.0.0.1500.

Examples

The code below adds an ImageOverlay to the ImageOverlayOrderCollection which is accessed using the ForegroundOverlays property.
CopyC#
//Return the map display
ESRI.ArcGISExplorer.Mapping.MapDisplay disp = ESRI.ArcGISExplorer.Application.Application.ActiveMapDisplay;

//Create the image overlay
ImageOverlay tempOverlay = new ImageOverlay("", @"C:\Data\TopSecret.png");
tempOverlay.DisplayPosition = DisplayPosition.TopRight;
tempOverlay.Transparency = 20;

//Add image overlay to the ImageOverlayCollection
disp.ForegroundOverlays.AddToTop(tempOverlay);
CopyVB.NET
'Return the map display
Dim disp As ESRI.ArcGISExplorer.Mapping.MapDisplay = ESRI.ArcGISExplorer.Application.Application.ActiveMapDisplay

'Create the image overlay
Dim tempOverlay As New ImageOverlay("", "C:\Data\TopSecret.png")
tempOverlay.DisplayPosition = DisplayPosition.TopRight
tempOverlay.Transparency = 20

'Add image overlay to the ImageOverlayCollection
disp.ForegroundOverlays.AddToTop(tempOverlay)

See Also