Enum DistanceUnit
Units describing various ways you can measure lengths.
public enum DistanceUnit
Fields
Arpent = 14
Arpent
Chain = 9
Chain
Feet = 1
Feet
Furlong = 12
Furlong
Inch = 7
Inch
Kilometer = 2
Kilometer
Link = 8
Link
Meter = 0
Meter
Mile = 3
Mile
NauticalMile = 6
Nauticalmile
Pole = 10
Pole
Rod = 11
Rod
UsSurveyFeet = 4
US Survey Feet
Vara = 13
Vara
Yard = 5
Yard
Remarks
Length units are most commonly used when calling APIs that measure lengths. Regardless of the unit of measure your shapes are in, many of our APIs allow you to specify what unit of measure you want the result of the method call to be in. For example, you may have a LineShape whose points are in decimal degrees; however, you want to know the length in miles. This is easy to accomplish. Simply call the GetLength method on the LineShape, passing in the first parameter of decimal degrees (which defines what unit the shape is in), and then miles as the length unit you would like the result to be in.