Gets or sets the display position of the image overlay.

Namespace:  ESRI.ArcGISExplorer.Mapping
Assembly:  ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.900 (2.0.0.900)

Syntax

C#
public DisplayPosition DisplayPosition { get; set; }
Visual Basic (Declaration)
Public Property DisplayPosition As DisplayPosition

Field Value

A DisplayPosition enumeration that specifies the position of the image overlay.

Remarks

Use this property to specify where the image overlay should be positioned on the map display.

Examples

The code below illustrates how to use this property to set the display position of the image overlay.
CopyC#
Map myMap = ESRI.ArcGISExplorer.Application.Application.ActiveMapDisplay.Map;
Bitmap bmp = new Bitmap("C:\\Images\\Logo.bmp");

ImageOverlay imgOverlay = new ImageOverlay("Logo", bmp);

//Add the new image overlay to the Map
myMap.ChildItems.Add(imgOverlay);

//Set the display position and transparency
imgOverlay.DisplayPosition = DisplayPosition.TopLeft;
imgOverlay.Transparency = 40;
CopyVB.NET
Dim myMap As Map = ESRI.ArcGISExplorer.Application.Application.ActiveMapDisplay.Map
Dim bmp As Bitmap = New Bitmap("C:\Images\Logo.bmp")

Dim imgOverlay As ImageOverlay = New ImageOverlay("Logo", bmp)

'Add the new image overlay to the Map
myMap.ChildItems.Add(imgOverlay)

'Set the display position and transparency
imgOverlay.DisplayPosition = DisplayPosition.TopLeft
imgOverlay.Transparency = 40

See Also

Relate Topics:
  LockAspectRatio Property
  ScalingSize Property
  SizeMode Property
  Transparency Property
  Visible Property
Created by Atop CHM to web converter,© 2009 all right reserved.