Array of descriptive names for the values in DistanceUnits enumeration. See DistanceUnits for an example of using DistanceUnitNames to retrieve a descriptive name for a returned distance unit.
Namespace:
ESRI.ArcGIS.VE(in ArcGISVE.exe)
Syntax
| JScript |
|---|
function get DistanceUnitNames () : array<String>[]()[] function set DistanceUnitNames (value : array<String>[]()[]) |
Remarks
By default, the names are in English: "Meters","Feet","Kilometers","Miles".
To change the values (to use for another language or to use abbreviations),
define a new array for the property, for example:
Copy
The number of names in the array must match the number of items in the DistanceUnits enumeration.
geomService.DistanceUnitNames = ["m","ft","km","mi"];
For an example of using DistanceUnitNames to retrieve the descriptive name for an DistanceUnit, see the sample "Measure the areas and perimeters of a set of polygons" in the "Work with Geometry" section of the Interactive SDK.
