Skip to main content
A newer version of this page is available. .
All docs
V21.1

Measurements.SetEditMode() Method

Enables Edit mode of the Measurements object.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v21.1.dll

NuGet Packages: DevExpress.Win.Design, DevExpress.Win.Map

Declaration

public void SetEditMode()

Remarks

The code below enables Edit mode:

mapControl1.Measurements.SetEditMode();

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