Skip to main content
A newer version of this page is available. .
All docs
V20.2

Measurements.SetCreateMode(RulerType) Method

Activates the Measurements object’s Create mode.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v20.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