All docs
V20.2
20.2
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

MeasurementEditMode Class

A measurement mode that allows users to change map rulers.

Namespace: DevExpress.Xpf.Map

Assembly: DevExpress.Xpf.Map.v20.2.dll

Declaration

public class MeasurementEditMode :
    MeasurementModeBase
Public Class MeasurementEditMode
    Inherits MeasurementModeBase

Remarks

The Map Control activates Edit mode after a ruler is added to the map. You can also enable Edit mode in XAML as follows:

<dxm:MapControl.Measurements>
  <dxm:Measurements>
      <dxm:Measurements.Mode>
          <dxm:MeasurementEditMode/>
      </dxm:Measurements.Mode>
  </dxm:Measurements>
</dxm:MapControl.Measurements>

Use the SetEditModeCommand to enable Edit mode at runtime.

You can also specify the Measurements.Mode property in code as follows:

mapControl1.Measurements.Mode = new MeasurementEditMode();

The following actions are available in Edit mode:

Action

Description

Add a ruler point.

Click the position on the ruler where you wish to add a point.

Change the ruler polyline.

Click and drag the point to a new location.

Delete a ruler point.

Double-click the ruler point.

The image below shows how to change a distance ruler:

Edit Ruler

See Also