ArcGIS Explorer Component Help |
ImageOverlay..::.SizeMode Property |
ImageOverlay Class Example See Also |
Gets or sets the size mode 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 SizeMode SizeMode { get; set; } |
Visual Basic (Declaration) |
---|
Public Property SizeMode As SizeMode |
Field Value
A SizeMode enumeration that specifies the size mode (absolute or relative) of the image overlay.Remarks
Use this property to specify whether the image overlay sizing should be absolute or relative. Absolute sizing keeps the image overlay size the same as you resize the map window. Relative sizing stretches the image overlay as you resize the map window.
Examples
CopyC#
Map myMap = ESRI.ArcGISExplorer.Application.Application.ActiveMapDisplay.Map; //Create a new image overlay from an existing PNG file ImageOverlay imgOverlay = new ImageOverlay("Logo", "C:\\Images\\Logo.png"); //Add the new image overlay to the Map myMap.ChildItems.Add(imgOverlay); //Set the SizeMode to Absolute or Relative imgOverlay.SizeMode = SizeMode.Absolute;
CopyVB.NET
Dim myMap As Map = ESRI.ArcGISExplorer.Application.Application.ActiveMapDisplay.Map 'Create a new image overlay from an existing PNG file Dim imgOverlay As ImageOverlay = New ImageOverlay("Logo", "C:\Images\Logo.png") 'Add the new image overlay to the Map myMap.ChildItems.Add(imgOverlay) 'Set the SizeMode to Absolute or Relative imgOverlay.SizeMode = ESRI.ArcGISExplorer.Mapping.SizeMode.Absolute