ArcGIS Explorer Component Help |
ImageOverlay..::.DisplayPosition Property |
ImageOverlay Class Example See Also |
Gets or sets the display position of the image overlay.
Namespace:
ESRI.ArcGISExplorer.MappingAssembly: ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.1500 (2.0.0.1500)
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