Back to Devexpress

MapControl.RotateAt(Double, CoordPoint) Method

wpf-devexpress-dot-xpf-dot-map-dot-mapcontrol-dot-rotateat-x28-system-dot-double-devexpress-dot-map-dot-coordpoint-x29.md

latest1.6 KB
Original Source

MapControl.RotateAt(Double, CoordPoint) Method

Rotates a map at the specified point.

Namespace : DevExpress.Xpf.Map

Assembly : DevExpress.Xpf.Map.v25.2.dll

NuGet Package : DevExpress.Wpf.Map

Declaration

csharp
public void RotateAt(
    double angle,
    CoordPoint center
)
vb
Public Sub RotateAt(
    angle As Double,
    center As CoordPoint
)

Parameters

NameTypeDescription
angleDouble

The angle in degrees.

| | center | CoordPoint |

A coordinate point that specifies the rotation point.

|

Remarks

The following code rotates the map 20 degrees:

csharp
mapControl.RotateAt(20, mapControl.CenterPoint);
vb
mapControl.RotateAt(20, mapControl.CenterPoint)

Alternatively, you can use the Angle property to specify the map’s rotation.

See Also

MapControl Class

MapControl Members

DevExpress.Xpf.Map Namespace