Skip to main content
All docs
V25.1
  • DevExpress v25.1 Update — Your Feedback Matters

    Our What's New in v25.1 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

    Take the survey Not interested

    Measurements.SetEditMode() Method

    In This Article

    Enables Edit mode of the Measurements object.

    Namespace: DevExpress.XtraMap

    Assembly: DevExpress.XtraMap.v25.1.dll

    NuGet Package: 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