Back to Devexpress

Measurements.SetEditMode() Method

windowsforms-devexpress-dot-xtramap-dot-measurements-b5b1b42c.md

latest1.6 KB
Original Source

Measurements.SetEditMode() Method

Enables Edit mode of the Measurements object.

Namespace : DevExpress.XtraMap

Assembly : DevExpress.XtraMap.v25.2.dll

NuGet Package : DevExpress.Win.Map

Declaration

csharp
public void SetEditMode()
vb
Public Sub SetEditMode

Remarks

The code below enables Edit mode:

csharp
mapControl1.Measurements.SetEditMode();
vb
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:

See Also

SetCreateMode(RulerType)

Measurements Class

Measurements Members

DevExpress.XtraMap Namespace