ESRI.ArcGIS.ADF.Web.UI.WebControls
ScaleBar Class
Members  See Also 
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace : ScaleBar Class




Displays a scale bar on the page when associated with a Map control.

Object Model




Syntax

Visual Basic (Declaration) 
<ToolboxDataAttribute("<{0}:ScaleBar runat='server' Height='30px' Width='330px'></{0}:ScaleBar>")>
<ClientScriptResourceAttribute(ComponentType="ESRI.ADF.UI.ScaleBar", ResourcePath="ESRI.ArcGIS.ADF.Web.UI.WebControls.Runtime.JavaScript.ESRI.ADF.UI.ScaleBar.release.js")>
<DefaultPropertyAttribute("Map")>
<ToolboxBitmapAttribute()>
Public Class ScaleBar 
   Inherits WebControl
   Implements IBuddyControlSupport 
Visual Basic (Usage)Copy Code
Dim instance As ScaleBar
C# 
[ToolboxDataAttribute("<{0}:ScaleBar runat='server' Height='30px' Width='330px'></{0}:ScaleBar>")]
[ClientScriptResourceAttribute(ComponentType="ESRI.ADF.UI.ScaleBar", ResourcePath="ESRI.ArcGIS.ADF.Web.UI.WebControls.Runtime.JavaScript.ESRI.ADF.UI.ScaleBar.release.js")]
[DefaultPropertyAttribute("Map")]
[ToolboxBitmapAttribute()]
public class ScaleBar : WebControl, IBuddyControlSupport  

Remarks

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.

Inheritance Hierarchy

System.Object
   System.Web.UI.Control
      System.Web.UI.WebControls.WebControl
         ESRI.ArcGIS.ADF.Web.UI.WebControls.WebControl
            ESRI.ArcGIS.ADF.Web.UI.WebControls.ScaleBar

See Also

© 2010 All Rights Reserved.