MapControl.EnableRotation Property
Specifies whether the map can be rotated.
Namespace: DevExpress.XtraMap
Assembly: DevExpress.XtraMap.v24.1.dll
NuGet Package: DevExpress.Win.Map
Declaration
Property Value
Type | Default | Description |
---|---|---|
Boolean | true | true if the map can be rotated; otherwise, false. |
Remarks
Hold down the right mouse button and move the mouse in a circle to rotate the map. Double-click the map with the right mouse button to reset the rotation angle.
The following code disables map rotation:
Use the Angle property or call the RotateAt(Double, CoordPoint) method to rotate the map programmatically.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the EnableRotation property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.