ESRI.ArcGIS.ADF.IMS
LengthUnits Property
See Also 
ESRI.ArcGIS.ADF.IMS.Display.AcetateElement Namespace > ScaleBar Class : LengthUnits Property




Gets or sets the units used to determine the length of the scale bar.

Syntax

Visual Basic (Declaration) 
Public Property LengthUnits As ScaleBarLengthUnits
Visual Basic (Usage)Copy Code
Dim instance As ScaleBar
Dim value As ScaleBarLengthUnits
 
instance.LengthUnits = value
 
value = instance.LengthUnits
C# 
public ScaleBarLengthUnits LengthUnits {get; set;}

Example

For an example of using scalebars, see the ScaleBar overview.

Remarks

The scalebar length can be specified either in terms of screen pixels or in terms of map distance. Use LengthUnits to set the units to either screen or map units, and then set the distance with Length. See remarks in the ScaleBar Class overview for information on how scalebar length is determined.

See Also

© 2010 All Rights Reserved.