Measurements Members
Contains API to manage rulers that help users measure distances and areas on a map.Constructors
| Name | Description |
|---|---|
| Measurements() | Initializes a new instance of the Measurements class. |
Fields
| Name | Description |
|---|---|
| AreaUnitsProperty static | Identifies the AreaUnits dependency property. |
| DistanceUnitsProperty static | Identifies the DistanceUnits dependency property. |
| ModeProperty static | Identifies the Mode dependency property. |
| ToolbarOptionsProperty static | Identifies the ToolbarOptions dependency property. |
Properties
| Name | Description |
|---|---|
| AreaUnits | Gets or sets the measurement unit for an area ruler. |
| DistanceUnits | Gets or sets measurement units for distance rulers. |
| Mode | Gets or sets the mode that the Measurements object uses. |
| RemoveRulersCommand | Returns a command that removes all rulers from the map. |
| SetCreateModeCommand | Returns the command that activates the Measurements object’s Create mode. |
| SetEditModeCommand | Returns the command that activates the Measurements object’s Edit mode. |
| ToolbarOptions | Returns the Measurements toolbar options. |
Methods
| Name | Description |
|---|---|
| CreateRuler(RulerType, IList<CoordPoint>, RulerAppearance) | Creates a ruler with the specified type and appearance settings to measure the distance or the area between coordinate points passed as the second parameter. |
| CreateRuler(RulerType, IList<CoordPoint>) | Creates a ruler of the specified type to measure the distance or area between coordinate points passed as the second parameter. |
| InsertPoint(MapRuler, CoordPoint, Int32) | Inserts a new point in the ruler. |
| RemovePoint(MapRuler, Int32) | Removes the point with the specified index. |
| RemoveRuler(MapRuler) | Removes the ruler passed as a parameter from the map. |
| RemoveRulers() | Removes all rulers from the map. |
| UpdatePoint(MapRuler, CoordPoint, Int32) | Changes the coordinates of the point with the specified index. |
Events
| Name | Description |
|---|---|
| AfterMeasurement | Occurs after a user creates a ruler. |
| AfterRulerRemoval | |
| BeforeMeasurement | Occurs when a user starts ruler creation. |
| BeforeRulerRemoval | |
| PropertyChanged | Occurs every time any of the MapDependencyObject class properties has changed its value. Inherited from MapDependencyObject. |
See Also