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




Gets or sets the length of the scale bar.

Syntax

Visual Basic (Declaration) 
Public Property Length As Double
Visual Basic (Usage)Copy Code
Dim instance As ScaleBar
Dim value As Double
 
instance.Length = value
 
value = instance.Length
C# 
public double Length {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.