Back to Devexpress

MapControl.Angle Property

windowsforms-devexpress-dot-xtramap-dot-mapcontrol-4f4106bf.md

latest1.7 KB
Original Source

MapControl.Angle Property

Specifies the rotation of the map’s content.

Namespace : DevExpress.XtraMap

Assembly : DevExpress.XtraMap.v25.2.dll

NuGet Package : DevExpress.Win.Map

Declaration

csharp
[DefaultValue(0)]
public double Angle { get; set; }
vb
<DefaultValue(0)>
Public Property Angle As Double

Property Value

TypeDefaultDescription
Double0

The angle in degrees.

|

Remarks

The following images illustrate a map with different Angle property values:

|

Angle = 0

|

Angle = 20

| | --- | --- | |

|

|

The code below rotates the map 20 degrees:

csharp
mapControl1.Angle = 20;
vb
mapControl1.Angle = 20

Alternatively, you can call the RotateAt method to specify the map’s rotation.

See Also

Rotation

MapControl Class

MapControl Members

DevExpress.XtraMap Namespace