All docs
V20.2
21.1 (EAP/Beta)
20.2
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

MapControl.EnableRotation Property

Specifies whether the map can be rotated.

Namespace: DevExpress.XtraMap

Assembly: DevExpress.XtraMap.v20.2.dll

Declaration

[DefaultValue(true)]
public bool EnableRotation { get; set; }
<DefaultValue(True)>
Public Property EnableRotation As Boolean

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:

mapControl1.EnableRotation = false;

Use the Angle property or call the RotateAt(Double, CoordPoint) method to rotate the map programmatically.

See Also