Skip to main content
All docs
V26.1
  • MapControl.EnableRotation Property

    Specifies whether the map can be rotated.

    Namespace: DevExpress.XtraMap

    Assembly: DevExpress.XtraMap.v26.1.dll

    NuGet Package: DevExpress.Win.Map

    Declaration

    [DefaultValue(true)]
    public bool EnableRotation { get; set; }

    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