Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 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.SetCreateMode(RulerType) Method

Activates the Measurements object’s Create mode.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v24.2.dll

NuGet Package: DevExpress.Win.Map

#Declaration

public void SetCreateMode(
    RulerType rulerType
)

#Parameters

Name Type Description
rulerType RulerType

The type of ruler that is created.

#Remarks

In Create mode, users can click an area on the map to create a ruler. They do not need to click toolbar buttons. The SetCreateMode method’s parameter defines the ruler type. The following code activates Create mode for a distance ruler:

mapControl1.Measurements.SetCreateMode(RulerType.Distance);

After a user adds a ruler, the Measurements object activates Edit mode.

See Also