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




Gets the scale of the current map.

Syntax

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

Property 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.

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.