ESRI.ArcGIS.ADF.Web.UI.WebControls
Map Property
See Also  Send Feedback
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace > ScaleBar Class : Map Property




The ID of the Map control to associate with this ScaleBar control.

Syntax

Visual Basic (Declaration) 
<NotifyParentPropertyAttribute(True)>
<ResDescriptionAttribute("The Map control to associate with this control.")>
<PersistenceModeAttribute(PersistenceMode.Attribute)>
<EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="ESRI.ArcGIS.ADF.Web.UI.WebControls.Design.BuddyControlEditor, ESRI.ArcGIS.ADF.Web.UI.WebControls, Version=10.1.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86")>
<ResCategoryAttribute("Buddy Controls")>
Public Property Map As String
Visual Basic (Usage)Copy Code
Dim instance As ScaleBar
Dim value As String
 
instance.Map = value
 
value = instance.Map
C# 
[NotifyParentPropertyAttribute(true)]
[ResDescriptionAttribute("The Map control to associate with this control.")]
[PersistenceModeAttribute(PersistenceMode.Attribute)]
[EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="ESRI.ArcGIS.ADF.Web.UI.WebControls.Design.BuddyControlEditor, ESRI.ArcGIS.ADF.Web.UI.WebControls, Version=10.1.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86")]
[ResCategoryAttribute("Buddy Controls")]
public string Map {get; set;}

Remarks

This must be the ID of a Map control on the page. The scalebar is drawn using the map functionality of the Map control's PrimaryMapResource property. This resource must implement the IScaleBarFunctionality Interface. Currently, only ArcGIS Server and ArcIMS data sources support this functionality.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2011 All Rights Reserved.