ArcGIS API for WPF - Library Reference
MapUnit Property
See Also  Send comments on this topic
ESRI.ArcGIS.Client Namespace > ScaleBar Class : MapUnit Property

Note: This API is now obsolete. Please use the ScaleLine control in the ESRI.ArcGIS.Client.Toolkit namespace.

Gets or sets the Map's underlying units being used.

Syntax

Visual Basic (Declaration) 
Public Property MapUnit As ScaleBarUnit
C# 
public ScaleBarUnit MapUnit {get; set;}

Remarks

For the ScaleBar to function correctly, it is important that the MapUnit is set to whatever unit the Map's SpatialReference is using. By default the SpatialReference is automatically defined by the first layer with a SpatialReference in the layer collection.

Unlike the DisplayUnit which users see on the ScaleBar Control, the MapUnit is based upon the geographic data that is loaded in the Map Control. Geographic data can be stored in various formats that are most suited its purpose. Some examples of common common native formats of geographic data include Decimal Degrees for the Geographic projection, Meters for the Universal Transverse Mercator (UTM) projection, and Feet for the State Plane projection.

Requirements

Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© ESRI, Inc. All Rights Reserved.