Back to Devexpress

Measurements Members

windowsforms-devexpress-dot-xtramap-dot-measurements-dot-underscore-members.md

latest5.6 KB
Original Source

Measurements Members

Contains API to manage rulers that help users measure distances and areas on a map.

Properties

NameDescription
AreaUnitsGets or sets measurement units for area rulers.
DistanceUnitsGets or sets measurement units for distance rulers.
ShowToolbarSpecifies whether the Measurements toolbar is displayed.
StyleReturns ruler style options.
ToolbarOptionsReturns the Measurements toolbar options.

Methods

NameDescription
CreateRuler(RulerType, IList<CoordPoint>, MapRulerStyle)Creates a ruler with the specified style and type 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 distance or area between coordinate points passed as the second parameter.
Equals(Object, Object) staticDetermines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object)Determines whether the specified object is equal to the current object. Inherited from Object.
GetHashCode()Serves as the default hash function. Inherited from Object.
GetType()Gets the Type of the current instance. Inherited from Object.
InsertPoint(MapRuler, CoordPoint, Int32)Inserts a new point in the ruler.
MemberwiseClone() protectedCreates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) staticDetermines whether the specified Object instances are the same instance. Inherited from Object.
RemovePoint(MapRuler, Int32)Removes a point with the specified index.
RemoveRuler(MapRuler)Removes the ruler passed as a parameter from the map.
RemoveRulers()Removes all rulers from the map.
SetCreateMode(RulerType)Activates the Measurements object’s Create mode.
SetEditMode()Enables Edit mode of the Measurements object.
ToString()Returns the short class name enclosed in parentheses.
UpdatePoint(MapRuler, CoordPoint, Int32)Changes the coordinates of a point with the specified index.

Events

NameDescription
AfterMeasurementOccurs after a user creates a ruler.
AfterRulerRemoval
BeforeMeasurementOccurs when a user starts ruler creation.
BeforeRulerRemoval

See Also

Measurements Class

DevExpress.XtraMap Namespace