ESRI.ArcGIS.ADF.Web.UI.WebControls
Scale Property
See Also 
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace > Map Class : Scale Property




Gets the scale of the current map.

Syntax

Visual Basic (Declaration) 
<ResDescriptionAttribute("Gets the scale of the current map.")>
<BrowsableAttribute(False)>
<DesignerSerializationVisibilityAttribute()>
Public Overridable ReadOnly Property Scale As Double
Visual Basic (Usage)Copy Code
Dim instance As Map
Dim value As Double
 
value = instance.Scale
C# 
[ResDescriptionAttribute("Gets the scale of the current map.")]
[BrowsableAttribute(false)]
[DesignerSerializationVisibilityAttribute()]
public virtual double Scale {get;}

Return Value

Scale of map expressed as a decimal fraction.

Remarks

The scale of the map depends on the map Extent, the map width in pixels, and the resolution of the user's display. The resolution by default is assumed to be 96 pixels (dots) per inch (DPI). Displays are often set to other DPI values, which can cause the Scale property to be incorrect.

See Also

© 2010 All Rights Reserved.