Measurements.SetCreateMode(RulerType) Method
In This Article
Activates the Measurements object’s Create mode.
Namespace: DevExpress.XtraMap
Assembly: DevExpress.XtraMap.v24.2.dll
NuGet Package: DevExpress.Win.Map
#Declaration
#Parameters
Name | Type | Description |
---|---|---|
ruler |
Ruler |
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:
After a user adds a ruler, the Measurements object activates Edit mode.
See Also