This document is archived and information here might be outdated.  Recommended version.


IMapDescription2.MapRotation Property (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Carto)  

IMapDescription2.MapRotation Property

The angle/rotation of the map (data frame) in degrees, measured anti-clockwise.

[Visual Basic .NET]
Public Property MapRotation As Double
[C#]
public double MapRotation {get; set;}
[C++]
HRESULT get_MapRotation(
  double* angleDegrees
);
[C++]
HRESULT put_MapRotation(
  double angleDegrees
);
[C++]

Parameters angleDegrees [out, retval] angleDegrees is a parameter of type double angleDegrees [in] angleDegrees is a parameter of type double

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

Map rotation is a property of a map. An exported map image or exported layout image should respect the map rotation value. However, once a MapServer Object has been added to ArcMap it is now a layer and this rotation value is dropped. The reason for this is, in ArcMap, when a layer is added to a map, the layer adjusts to fit the spatial reference and existing rotation of the  map.  If the default rotation of a new ArcMap document is zero, a MapServer object layer will lose any rotation when added to a new ArcMap session. The MapRotation value does not change, only the display of the MapServer Layer.

See Also

IMapDescription2 Interface