![]() ![]() |
ESRI.ArcGIS.ADF.Web.UI.WebControls | |
ScaleBar Class | |
Members See Also Send Feedback |
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace : ScaleBar Class |

Visual Basic (Declaration) | |
---|---|
<ToolboxDataAttribute("<{0}:ScaleBar runat='server' Height='30px' Width='330px'></{0}:ScaleBar>")> <ToolboxBitmapAttribute()> <AjaxControlToolkit.ClientScriptResourceAttribute(ComponentType="ESRI.ADF.UI.ScaleBar", ResourcePath="ESRI.ArcGIS.ADF.Web.UI.WebControls.Runtime.JavaScript.ESRI.ADF.UI.ScaleBar.release.js")> <DefaultPropertyAttribute("Map")> Public Class ScaleBar Inherits WebControl Implements IBuddyControlSupport |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As ScaleBar |
C# | |
---|---|
[ToolboxDataAttribute("<{0}:ScaleBar runat='server' Height='30px' Width='330px'></{0}:ScaleBar>")] [ToolboxBitmapAttribute()] [AjaxControlToolkit.ClientScriptResourceAttribute(ComponentType="ESRI.ADF.UI.ScaleBar", ResourcePath="ESRI.ArcGIS.ADF.Web.UI.WebControls.Runtime.JavaScript.ESRI.ADF.UI.ScaleBar.release.js")] [DefaultPropertyAttribute("Map")] public class ScaleBar : WebControl, IBuddyControlSupport |
The ScaleBar control must have its Map property set to the ID of a Map control on the page. The scalebar will automatically update when the map changes scale.
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.
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