Skip to main content
All docs
V24.1

Measurements.DistanceUnits Property

Gets or sets measurement units for distance rulers.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v24.1.dll

NuGet Package: DevExpress.Win.Map

Declaration

public MeasureUnit DistanceUnits { get; set; }

Property Value

Type Description
MeasureUnit

Distance measurement units.

Remarks

You can use the following values:

To apply units to this ruler, specify distance units before ruler creation:

mapControl1.Measurements.DistanceUnits = MeasureUnit.Mile;
MapRuler ruler= mapControl1.Measurements.CreateRuler(RulerType.Distance, new List<CoordPoint>() {
                                                                                  new GeoPoint(0, 0),
                                                                                  new GeoPoint(10, 0),
                                                                                  new GeoPoint(10, 10) });
See Also