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

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

Gets or sets the type of units that are displayed in the text area of the ScaleBar control.

Syntax

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

Remarks

The following image depicts ScaleBar's with different DisplayUnit values set:

ScaleBar's with different DisplayUnit's set.

Purpose of setting the DisplayUnit Property:

The DisplayUnit Property provides the human readable type of units that are displayed in the text area of the ScaleBar Control. It is not necessary that the MapUnit and DisplayUnit be the same on the ScaleBar. For example: the Map Controls SpatialReference may be in Decimal Degrees (a type of Geographic projection) but this might not serve as very useful for individuals using the map to view drive distances; setting the DisplayUnit to Miles would be more appropriate.

Types of DisplayUnit values:

The types of DisplayUnit values that can be set are defined in the ESRI.ArcGIS.Client.ScaleBarUnit Enumeration's. The availabe types are:

  • Centimeters
  • DecimalDegrees
  • Decimteres
  • Feet
  • Inches
  • Kilometers
  • Meters
  • Miles
  • Millimeters
  • NauticalMiles
  • Undefined
  • Yards

Requirements

Target Platforms:Windows Phone 7

See Also

© ESRI, Inc. All Rights Reserved.