This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMapDescription2 Interface > IMapDescription2.MapRotation Property (ArcObjects .NET 10.5 SDK) |
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
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.