Skip to main content
A newer version of this page is available. .
All docs
V20.2

Measurements.AreaUnits Property

Gets or sets measurement units for area rulers.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v20.2.dll

NuGet Package: DevExpress.Win.Map

Declaration

public AreaMeasurementUnit AreaUnits { get; set; }

Property Value

Type Description
AreaMeasurementUnit

Area measurement units.

Remarks

You can use the following values:

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

mapControl1.Measurements.AreaUnits = AreaMeasurementUnit.SquareMile;
MapRuler ruler= mapControl1.Measurements.CreateRuler(RulerType.Area, new List<CoordPoint>() {
                                                                                  new GeoPoint(0, 0),
                                                                                  new GeoPoint(10, 0),
                                                                                  new GeoPoint(10, 10) });
See Also