ESRI.ArcGIS.ADF.Web.UI.WebControls
Map Property
See Also 
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.")>
<EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="ESRI.ArcGIS.ADF.Web.UI.WebControls.Design.BuddyControlEditor, ESRI.ArcGIS.ADF.Web.UI.WebControls, Version=10.0.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86")>
<ResCategoryAttribute("Buddy Controls")>
<PersistenceModeAttribute()>
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.")]
[EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="ESRI.ArcGIS.ADF.Web.UI.WebControls.Design.BuddyControlEditor, ESRI.ArcGIS.ADF.Web.UI.WebControls, Version=10.0.0.0, Culture=neutral, PublicKeyToken=8fc3cc631e44ad86")]
[ResCategoryAttribute("Buddy Controls")]
[PersistenceModeAttribute()]
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.

See Also

© 2010 All Rights Reserved.